[issue8895] newline vs. newlines in io module

R. David Murray <rdmurray@bitdance.com> added the comment: This is as documented: http://docs.python.org/dev/3.0/library/io.html#io.TextIOBase.newlines The keyword argument is named 'newline', the attribute is named 'newlines'. The attribute does not record what was passed to the newline argument, rather it records what newlines have been actually encountered. ---------- nosy: +r.david.murray resolution: -> invalid stage: needs patch -> committed/rejected status: open -> closed type: -> behavior _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue8895> _______________________________________

Jean-Michel Fauth <wxjmfauth@gmail.com> added the comment: 2010/6/4 R. David Murray <report@bugs.python.org>
R. David Murray <rdmurray@bitdance.com> added the comment:
This is as documented:
http://docs.python.org/dev/3.0/library/io.html#io.TextIOBase.newlines
The keyword argument is named 'newline', the attribute is named 'newlines'. The attribute does not record what was passed to the newline argument, rather it records what newlines have been actually encountered.
Ok, I see. I read, reread the doc prior posting, and, in my mind, it is not obvious to understand this subtle difference from the doc. Sorry for the noise. Regards. ---------- Added file: http://bugs.python.org/file17549/unnamed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue8895> _______________________________________
participants (2)
-
Jean-Michel Fauth
-
R. David Murray