Ethan Furman added the comment: 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 ['']. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15510> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com