[issue2021] Turn NamedTemporaryFile into a context manager

Christian Heimes report at bugs.python.org
Wed Feb 6 19:19:20 CET 2008


Christian Heimes added the comment:

Thanks for the patch! It even has a unit test, very good. :)

The __future__ statement isn't necessary for Python 2.6. The with
statement is always available.

----------
nosy: +tiran
priority:  -> normal
type: behavior -> rfe

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2021>
__________________________________


More information about the Python-bugs-list mailing list