Martin Panter added the comment:

Here is a suggested patch. I did include details of the initializer and 
getvalue(); this is the heart of the problem IMO. In a limited sense the 
newline flag _is_ similar to TextIOWrapper, but more broadly this implied to me 
that newlines should be encoded in the buffer, just like in TextIOWrapper’s 
wrapped “buffer” and on disk.

My patch also adds to a comment in the C code and removes another comment made 
out of date by Argument Clinic.

In the documentation I didn’t mention the problem with split CRLFs; I think 
that is a separate bug.

----------
assignee:  -> docs@python
components: +Documentation
nosy: +docs@python
stage:  -> patch review
status: closed -> open
versions: +Python 2.7, Python 3.6
Added file: http://bugs.python.org/file40665/newline-doc.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22413>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to