Message334045
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.) |
|
| Date |
User |
Action |
Args |
| 2019-01-19 07:42:52 | martin.panter | set | recipients:
+ martin.panter, sambayer |
| 2019-01-19 07:42:50 | martin.panter | set | messageid: <1547883770.62.0.639075472135.issue35762@roundup.psfhosted.org> |
| 2019-01-19 07:42:50 | martin.panter | link | issue35762 messages |
| 2019-01-19 07:42:50 | martin.panter | create | |
|