[issue7865] io close() swallowing exceptions
Antoine Pitrou
report at bugs.python.org
Wed Apr 28 22:08:16 CEST 2010
Antoine Pitrou <pitrou at free.fr> added the comment:
For what it's worth, I documented the possibility to call close() several times in r80592.
> Then when you try to wrap a non-readable stream into a readable
> buffered stream (like BufferedRWPair), it should raise a value error as
> well,
Good point. Unfortunately, it's now a bit late to change this.
(in any case, it's a programming error to do such things and therefore the user will have to fix his/her code, rather than trying to catch the exception)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7865>
_______________________________________
More information about the Python-bugs-list
mailing list