[issue10461] Use with statement throughout the docs

SilentGhost report at bugs.python.org
Fri Mar 11 18:26:40 CET 2011


SilentGhost <ghost.adh at gmail.com> added the comment:

Éric, I'm not sure about the first atexit.rst hunk. I thought the purpose of that code was to except IOError when no file is found. I'm not entirely sure why in the simplest case infile.read() would raise IOError. I'd think that eli's patch (file19667) would suit better.

----------
status: closed -> pending

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


More information about the Python-bugs-list mailing list