[issue23700] tempfile.NamedTemporaryFile can close too early if used as iterator

R. David Murray report at bugs.python.org
Sat Mar 21 05:12:59 CET 2015


R. David Murray added the comment:

There's actually an issue about exactly that broken-per-docs issue for io.  IMO if the goal of calling close is to close only things that are generator objects or pretending to be one, the method should have been named close_generator or something.

----------

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


More information about the Python-bugs-list mailing list