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

Serhiy Storchaka report at bugs.python.org
Thu Sep 5 14:03:24 CEST 2013


Serhiy Storchaka added the comment:

Yet one way is just remove __del__() and monkey-patch underlied file.

----------
Added file: http://bugs.python.org/file31603/tempfile_simplify.patch

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


More information about the Python-bugs-list mailing list