Message146841
| Author |
sbt |
| Recipients |
sbt |
| Date |
2011年11月02日.15:08:54 |
| SpamBayes Score |
9.8640725e-05 |
| Marked as misclassified |
No |
| Message-id |
<1320246535.71.0.465783773129.issue13322@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
According to the the documentation, BufferedReader.read() and BufferedWriter.write() should raise io.BlockingIOError if the file is in non-blocking mode and the operation cannot succeed without blocking.
However, BufferedReader.read() returns None (which is what RawIOBase.read() is documented as doing), and BufferedWriter.write() raises IOError with a message like
raw write() returned invalid length -1 (should have been
between 0 and 5904)
I tested this on Linux with Python 2.6, 2.7 and 3.x.
Attached is a unit test. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年11月02日 15:08:55 | sbt | set | recipients:
+ sbt |
| 2011年11月02日 15:08:55 | sbt | set | messageid: <1320246535.71.0.465783773129.issue13322@psf.upfronthosting.co.za> |
| 2011年11月02日 15:08:55 | sbt | link | issue13322 messages |
| 2011年11月02日 15:08:54 | sbt | create |
|