Message167359
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 ['']. |
|
Date |
User |
Action |
Args |
2012-08-03 21:24:42 | ethan.furman | set | recipients:
+ ethan.furman, twouters, gward, jcea, pitrou, chris.jerdonek |
2012-08-03 21:24:41 | ethan.furman | link | issue15510 messages |
2012-08-03 21:24:41 | ethan.furman | create | |
|