[docs] [issue22232] str.splitlines splitting on non-\r\n characters

Gregory P. Smith report at bugs.python.org
Fri Jul 10 19:11:24 CEST 2015


Gregory P. Smith added the comment:

If this isn't already mentioned in 2 to 3 porting notes it is worth highlighting there.  code which uses a str in python 2 and still uses a str in python 3 is now splitting on many more characters.

That seems to be the source of bugs like issue22233.  splitlines() used to work for the strict \r\n splitting task.  now that code needs to made explicit about its splitting desires.

----------
nosy: +gregory.p.smith

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22232>
_______________________________________


More information about the docs mailing list