This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2017-10-12.15:09:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1507820972.65.0.213398074469.issue31775@psf.upfronthosting.co.za>
In-reply-to
Content
It seems like that some methods of the io.TextIOWrapper class requires that its buffer object has the read1() method, whereas the constructor checks if the buffer has a read1() method and the TextIOWrapper _read_chunk() method is able to call buffer.read() if buffer doesn't have read1().

This issue may help to get fully unbuffered sys.stdin, at least when replaced manually:

stdin = sys.stdin
sys.stdin = open(0, "r", buffering=0, encoding=stdin.encoding, errors=stdin.errors, newline=stdin.newline)
History
Date User Action Args
2017-10-12 15:09:32vstinnersetrecipients: + vstinner
2017-10-12 15:09:32vstinnersetmessageid: <1507820972.65.0.213398074469.issue31775@psf.upfronthosting.co.za>
2017-10-12 15:09:32vstinnerlinkissue31775 messages
2017-10-12 15:09:32vstinnercreate