[issue7578] Behavior of operations on a closed file object is not documented correctly

Antoine Pitrou report at bugs.python.org
Sun Dec 27 23:00:30 CET 2009


Antoine Pitrou <pitrou at free.fr> added the comment:

I think we raise ValueError because that's already what 2.x does with
plain file objects. Also, it's true that it's a programming error (using
a closed file) and not really an "IO error".

Simplest would be to fix the docs for the io module, IMHO.

----------

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


More information about the Python-bugs-list mailing list