➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 chris.jerdonek
收信人 chris.jerdonek, ethan.furman, gward, jcea, pitrou, twouters
日期 2012-08-03.22:41:36
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1344033697.63.0.832635975428.issue15510@psf.upfronthosting.co.za>
In-reply-to
内容
> That's because wrap() suppresses extra whitespace by default. 

But the documentation for drop_whitespace clearly states that, after wrapping, "leading whitespace in the first line is always preserved, though."

> Once extra whitespace is suppressed, you are left with an empty text, meaning an empty list of lines. That's perfectly logical.

I wouldn't say that it is "perfectly" logical.  String methods that drop characters from the beginning or end of a string return an empty string for empty text.

>>> "   ".strip()
''

> Furthermore, by "fixing" this, you may break existing software.

Issue 1859 is an arguably larger change that will also break existing software, and that issue has been kept open.

One scenario to consider: if we agree to fix issue 1859 in some versions, might that change whether we should address this issue in those versions as well?
历史
日期 用户 动作 参数
2012-08-03 22:41:37chris.jerdonek修改recipients: + chris.jerdonek, twouters, gward, jcea, pitrou, ethan.furman
2012-08-03 22:41:37chris.jerdonek修改messageid: <1344033697.63.0.832635975428.issue15510@psf.upfronthosting.co.za>
2012-08-03 22:41:37chris.jerdonek链接issue15510 messages
2012-08-03 22:41:36chris.jerdonek创建