Message334045
| 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: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 |
|