R. David Murray <rdmur...@bitdance.com> added the comment: Why would you expect it to?
>>> 'a\nb'.splitlines() ['a', 'b'] >>> 'a\nb\n'.splitlines() ['a', 'b'] >>> 'a\nb\n\n'.splitlines() ['a', 'b', ''] That's exactly what I would intuitively expect, and I don't see how it could possibly do anything else. ---------- nosy: +r.david.murray _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13857> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com