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 martin.panter
Recipients martin.panter, viraptor
Date 2014-12-21.05:34:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1419140064.02.0.706445505076.issue22854@psf.upfronthosting.co.za>
In-reply-to
Content
Some of the docstrings already mention UnsupportedOperation. This patch updates the rest of the documentation. Also adds some tests to verify this on all the concrete classes I could think of. Some discoveries in the process:

* BufferedWriter.readable() and BufferedReader.writable() could return True depending on the underlying raw stream. Fixed to always return False.
* Removed a branch in a test case that assumed BufferedReader.close() did not call flush(), but never activated due to the above writable() bug
* seek(), tell() and truncate() do not raise UnsupportedOperation, despite seekable() == False, at least for a pipe. Adjusted doc strings.
History
Date User Action Args
2014-12-21 05:34:24martin.pantersetrecipients: + martin.panter, viraptor
2014-12-21 05:34:24martin.pantersetmessageid: <1419140064.02.0.706445505076.issue22854@psf.upfronthosting.co.za>
2014-12-21 05:34:23martin.panterlinkissue22854 messages
2014-12-21 05:34:23martin.pantercreate