[docs] [issue11305] TextIOWrapper.readline and str.splitlines have different behavior
R. David Murray
report at bugs.python.org
Thu Feb 24 03:45:04 CET 2011
R. David Murray <rdmurray at bitdance.com> added the comment:
"newline controls how universal newlines works (it only applies to text mode). It can be None, '', '\n', '\r', and '\r\n'..."
Whereas splitlines says:
"Return a list of the lines in the string, breaking at line boundaries."
So if we are fixing docs, we need to add that "line boundaries" are based on the relevant unicode properties (see issue 7643).
And, indeed, Antoine has already pronounced on this in issue 6664.
Since this has come up more than once, adding a note that they are not recognized by design in the io module to the io docs might be a good idea.
assignee: -> docs at python
nosy: +docs at python, pitrou
stage: -> needs patch
type: -> behavior
versions: +Python 2.7
Python tracker <report at bugs.python.org>
More information about the docs