Message334655
This is covered by Issue 13322. There are a few other BufferedReader methods that contradict the documentation for non-blocking mode.
A while ago I posted a patch to change the implementation to match the documentation, but nobody reviewed it or gave their opinion. These days I would prefer to just documentat the reality: the methods might raise an exception rather than returning None, or perhaps no particular behaviour at all is expected in general in the non-blocking case. But I donât spend much time on Python now, so you might have to find someone else to move this forward.
Regarding the entry for âBufferedReader.readâ, it would make more sense to remove the last âifâ: âif âsizeâ is not given . . ., until EOF, or the âreadâ call would blockâ. But I donât think even that is complete, because it should also say the read stops and returns short in the non-blocking case even when âsizeâ is positive. |
|
| Date |
User |
Action |
Args |
| 2019-02-01 08:36:12 | martin.panter | set | recipients:
+ martin.panter, docs@python, steverpalmer |
| 2019-02-01 08:36:11 | martin.panter | set | messageid: <1549010171.14.0.306231721234.issue35869@roundup.psfhosted.org> |
| 2019-02-01 08:36:11 | martin.panter | link | issue35869 messages |
| 2019-02-01 08:36:10 | martin.panter | create | |
|