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

Nick Coghlan report at bugs.python.org
Sat Jan 2 00:28:08 CET 2010


Nick Coghlan <ncoghlan at gmail.com> added the comment:

Note that one of the reasons for the slightly wishy-washy phrasing in
the docs is to give other implementations a bit more freedom in the way
way they handle these error cases.

Agreed that the main reason is the one Antoine gave though - the
ValueError is looking at things from the point of view that the program
passed in a closed file object when an open one was needed.

----------
nosy: +ncoghlan

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


More information about the Python-bugs-list mailing list