[issue18879] tempfile.NamedTemporaryFile can close the file too early, if not assigning to a variable

Antoine Pitrou report at bugs.python.org
Sat Dec 21 21:33:59 CET 2013


Antoine Pitrou added the comment:

Here is a proper patch (for 3.3). Untested under Windows, but should work.

----------
nosy: +pitrou
Added file: http://bugs.python.org/file33250/tempfile_lifetime.patch

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


More information about the Python-bugs-list mailing list