[docs] [issue22232] str.splitlines splitting on non-\r\n characters
Ezio Melotti
report at bugs.python.org
Tue Oct 28 12:03:27 CET 2014
Ezio Melotti added the comment:
Looks like str.splitlines is using STRINGLIB_ISLINEBREAK which in turn uses Py_UNICODE_ISLINEBREAK, so the behavior should be correct. If splitting on \n, \r, and \r\n only is common enough with might add a bool arg to splitlines to restrict the splitting on those 3 only, but I can't think about any good name for such arg.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22232>
_______________________________________
More information about the docs
mailing list