[issue7865] io close() swallowing exceptions

Pascal Chambon report at bugs.python.org
Wed Apr 28 08:49:53 CEST 2010


Pascal Chambon <chambon.pascal at gmail.com> added the comment:

I'm quite surprised it wasn't already covered by the test suite :S

Anyway I'm quite confused about the semantic which is expected from IO operations...

Should a flush on a closed stream fail (at the moment sometimes it does, sometimes doesn't) ? Why is sometimes ValueError used when I'd rather expect an IOError ?

----------

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


More information about the Python-bugs-list mailing list