[issue6664] readlines should understand Line Separator and Paragraph Separator characters

Antoine Pitrou report at bugs.python.org
Mon Jan 3 21:22:04 CET 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

By design, readlines() only recognizes those characters which are official line separators on various OSes (\n, \r, \r\n). This is important for proper parsing of log files, internet protocols, etc.
If you want to split on all line separators recognized by the unicode spec, use str.splitlines().

----------
resolution:  -> rejected
status: open -> closed

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


More information about the Python-bugs-list mailing list