[Python-Dev] Warn about mktemp once again?
Guido van Rossum
guido at python.org
Tue Apr 29 21:09:02 CEST 2008
On Mon, Apr 28, 2008 at 10:49 PM, Greg Ewing
<greg.ewing at canterbury.ac.nz> wrote:
> The problem with NamedTemporaryFile is that it deletes
> the file as soon as you close it, which makes the
> named-ness of it rather useless, as far as I can see.
Why? You can flush it and then all the data is on the disk.
The whole point of [Named]TemporaryFile is to automate the cleanup as
well as the creation.
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev