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 <rep...@bugs.python.org>
<http://bugs.python.org/issue22854>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to