Message146878
BufferedReader.readinto() should also raise BlockingIOError according to the docs. Updated unittest checks for that also.
BTW, The documentation for BufferedIOBase.read() says that BlockingIOError should be raised if nothing can be read in non-blocking mode. BufferedReader inherits from BufferedIOBase and overrides the read() method. This is the documentation for BufferedReader.read():
read([n])
Read and return n bytes, or if n is not given or negative,
until EOF or if the read call would block in non-blocking mode.
This sentence is complete gobbledygook, and it makes no mention of what should happen if nothing can be read in non-blocking mode. So I presume behaviour for BufferedReader.read() should match the documented behaviour for BufferedIOBase.read(). |
|
Date |
User |
Action |
Args |
2011-11-02 22:28:30 | sbt | set | recipients:
+ sbt, pitrou, petri.lehtinen |
2011-11-02 22:28:30 | sbt | set | messageid: <1320272910.81.0.281974980124.issue13322@psf.upfronthosting.co.za> |
2011-11-02 22:28:30 | sbt | link | issue13322 messages |
2011-11-02 22:28:30 | sbt | create | |
|