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 <rep...@bugs.python.org>
<http://bugs.python.org/issue22232>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to