[issue23700] tempfile.NamedTemporaryFile can close too early if used as iterator
Wolfgang Maier
report at bugs.python.org
Fri Mar 20 17:24:00 CET 2015
Wolfgang Maier added the comment:
OTOH, it would be very hard to change the way fileobjects compared to designing yield from differently so I'd still blame it partly.
Maybe it is unfortunate that generators have a close method instead of, say, __close__ ?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23700>
_______________________________________
More information about the Python-bugs-list
mailing list