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 -- http://mail.python.org/mailman/listinfo/python-list