This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sbt
Recipients sbt
Date 2011-11-02.15:08:54
SpamBayes Score 9.86407e-05
Marked as misclassified No
Message-id <>
According to the the documentation, and BufferedWriter.write() should raise io.BlockingIOError if the file is in non-blocking mode and the operation cannot succeed without blocking.

However, returns None (which is what 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.
Date User Action Args
2011-11-02 15:08:55sbtsetrecipients: + sbt
2011-11-02 15:08:55sbtsetmessageid: <>
2011-11-02 15:08:55sbtlinkissue13322 messages
2011-11-02 15:08:54sbtcreate