[issue8895] newline vs. newlines in io module

Jean-Michel Fauth report at bugs.python.org
Fri Jun 4 15:44:44 CEST 2010


Jean-Michel Fauth <wxjmfauth at gmail.com> added the comment:

2010/6/4 R. David Murray <report at bugs.python.org>

>
> R. David Murray <rdmurray at 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 at bugs.python.org>
<http://bugs.python.org/issue8895>
_______________________________________
-------------- next part --------------
<br><br><div class="gmail_quote">2010/6/4 R. David Murray <span dir="ltr">&lt;<a href="mailto:report at bugs.python.org">report at bugs.python.org</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
R. David Murray &lt;<a href="mailto:rdmurray at bitdance.com">rdmurray at bitdance.com</a>&gt; added the comment:<br>
<br>
This is as documented:<br>
<br>
   <a href="http://docs.python.org/dev/3.0/library/io.html#io.TextIOBase.newlines" target="_blank">http://docs.python.org/dev/3.0/library/io.html#io.TextIOBase.newlines</a><br>
<br>
The keyword argument is named &#39;newline&#39;, the attribute is named &#39;newlines&#39;.  The attribute does not record what was passed to the newline argument, rather it records what newlines have been actually encountered.<br>
</blockquote></div><br>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.<br>Sorry for the noise.<br>Regards.<br><br>


More information about the Python-bugs-list mailing list