[issue4928] Problem with tempfile.NamedTemporaryFile
Martin Panter
report at bugs.python.org
Sat Feb 20 01:42:06 EST 2016
Martin Panter added the comment:
I am surprised at the report that Red Hat Linux automatically removed the file. What system calls are involved? On my Arch Linux setup with current 3.6 code it leaves the file behind (same as the Solaris report).
However the the Windows version does automatically deleting the file once all file handles are closed:
# Setting O_TEMPORARY in the flags causes the OS to delete
# the file when it is closed. This is only supported by Windows.
Perhaps this behaviour should be documented.
----------
nosy: +martin.panter
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4928>
_______________________________________
More information about the Python-bugs-list
mailing list