[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows
Richard Oudkerk
report at bugs.python.org
Sat Jun 30 18:07:30 CEST 2012
Richard Oudkerk <shibturn at gmail.com> added the comment:
Rather than add a NamedTemporaryFile.delete_after() classmethod, would it not be simpler to just add a close_without_unlink() method to NamedTemporaryFile?
with NamedTemporaryFile() as f:
<write to f>
f.close_without_unlink()
with open(f.name, 'rb') as f:
<read from f>
----------
nosy: +sbt
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14243>
_______________________________________
More information about the Python-bugs-list
mailing list