Antoine Pitrou pit...@free.fr added the comment:
Indeed.
--
resolution: - out of date
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7578
Kirubakaran Athmanathan pyb...@kirubakaran.com added the comment:
Looks like this was fixed in 3.3 in the commit 72890:a22d94547570 Should this
issue be closed?
--
nosy: +kirubakaran
___
Python tracker rep...@bugs.python.org
Nick Coghlan ncogh...@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
Georg Brandl ge...@python.org added the comment:
I agree; though I would wish for a bit finer-grained I/O related
exceptions...
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7578
___
Changes by Georg Brandl ge...@python.org:
--
assignee: georg.brandl - pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7578
___
___
Antoine Pitrou pit...@free.fr added the comment:
I agree; though I would wish for a bit finer-grained I/O related
exceptions...
I agree with that. It probably needs someone to shepherd the idea to
python-dev so as to get it accepted.
--
___
Python
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Should all these ValueErrors be turned into IOErrors?
--
nosy: +amaury.forgeotdarc, pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7578
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.
Changes by Baptiste Lepilleur b...@users.sourceforge.net:
--
title: Behavio of operations on a closed file object is not documented
correctly - Behavior of operations on a closed file object is not documented
correctly
___
Python tracker