消息 [167359]
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 ['']. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2012-08-03 21:24:42 | ethan.furman | 修改 | recipients:
+ ethan.furman, twouters, gward, jcea, pitrou, chris.jerdonek |
| 2012-08-03 21:24:41 | ethan.furman | 链接 | issue15510 messages |
| 2012-08-03 21:24:41 | ethan.furman | 创建 | |
|