[Python-Dev] Warn about mktemp once again? (original) (raw)
Guido van Rossum guido at python.org
Tue Apr 29 21:09:02 CEST 2008
- Previous message: [Python-Dev] Warn about mktemp once again?
- Next message: [Python-Dev] Warn about mktemp once again?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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/)
- Previous message: [Python-Dev] Warn about mktemp once again?
- Next message: [Python-Dev] Warn about mktemp once again?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]