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

Neil Schemenauer report at bugs.python.org
Fri Oct 5 02:14:04 EDT 2018


Neil Schemenauer <nas-python at arctrix.com> added the comment:

If we introduce a keyword parameter, I think the default of str.splitlines() should be changed to match bytes.splitlines (and match Python 2 str.splitlines()).  I.e. split on \r and \n by default.  I looked through the stdline and I can't find any calls that should actually by splitting on the extra characters.  I will check it again though.

Does anyone have an example of where the current behaviour is actually wanted?

----------
nosy: +nascheme

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


More information about the docs mailing list