[issue22854] Documentation/implementation out of sync for IO

Martin Panter report at bugs.python.org
Sat Mar 26 21:26:49 EDT 2016


Martin Panter added the comment:

Okay let’s document fileno(), read, write and seek operations in the base classes as raising OSError then. This effectively rejects the OP (Stanislaw’s) view that the exception should be more specific.

In patch v3, I changed everything over to say OSError is raised. I also added a background thread to drain the pipe writer. And I removed a test_no_fileno() method which was having an “existential crisis”. :)

----------
Added file: http://bugs.python.org/file42301/UnsupportedOperation.v3.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22854>
_______________________________________


More information about the Python-bugs-list mailing list