python and os.system() failure
Michael Hoffman
cam.ac.uk at mh391.invalid
Mon May 2 19:33:06 EDT 2005
Anthony wrote:
> I only have a tempfile object:
>
> tmp = tempfile.mkstemp(dir="/var/tmp/")
Why aren't you using NamedTemporaryFile instead? Using mkstemp adds a
lot of complications that are usually unnecessary.
> I will try to explicitly call a close() or whatever the syntax is to
> finalize the object to deletion by garbage collection.
Files created with mkstemp are neither closed nor deleted when they are
finalized. I don't see how GC comes into it either.
--
Michael Hoffman
More information about the Python-list
mailing list