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.

Author ethan.furman
Recipients chris.jerdonek, ethan.furman, gward, jcea, pitrou, twouters
Date 2012-08-03.21:24:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <501C4504.2010403@stoneleaf.us>
In-reply-to <501C4369.2060102@stoneleaf.us>
Content
Ethan Furman wrote:
>> Antoine Pitrou added the comment:
>>
>>>>> "".splitlines()
>> []
> 
> --> ''.split('\n')
> ['']

I see the docs have been fixed in 3 to explain the not present last 
empty line.

However, sure this is still not correct?

--> wrap('   ')
[]

So if you have code that loops over the return and prints it out:

for line in wrap(blah):
     print(line)

you will have different output with [] than with [''].
History
Date User Action Args
2012-08-03 21:24:42ethan.furmansetrecipients: + ethan.furman, twouters, gward, jcea, pitrou, chris.jerdonek
2012-08-03 21:24:41ethan.furmanlinkissue15510 messages
2012-08-03 21:24:41ethan.furmancreate