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