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 martin.panter
Recipients martin.panter, sambayer
Date 2019-01-19.07:42:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1547883770.62.0.639075472135.issue35762@roundup.psfhosted.org>
In-reply-to
Content
Yes, universal newlines mode uses the TextIOWrapper class to read the pipe, which isn’t really designed for non-blocking mode. This is the same problem described by Izbyshev at <https://bugs.python.org/issue13322#msg307763>.

Raising TypeError isn’t ideal. IMO it would be better to raise BlockingIOError, which is what basic calls like “os.read” would do, and what “BufferedReader.read” is supposed to do according to the documentation. (However the documentation and implementation don’t match; that is what Issue 13322 is about.)
History
Date User Action Args
2019-01-19 07:42:52martin.pantersetrecipients: + martin.panter, sambayer
2019-01-19 07:42:50martin.pantersetmessageid: <1547883770.62.0.639075472135.issue35762@roundup.psfhosted.org>
2019-01-19 07:42:50martin.panterlinkissue35762 messages
2019-01-19 07:42:50martin.pantercreate