On Nov 11, 10:32 am, John Nagle <na...@animats.com> wrote: > Is there any reason to prefer "tempfile.TemporaryFile()" > over "os.tmpfile()"? Both create a nameless temporary file > that will be deleted on close.
os.tmpfile calls your OS's tmpfile system call. tempfile.TemporaryFile creates the temporary file itself. So, if you trust your OS more than Python, use os.tempfile. I-only-use-tempfile-module-ly yr's, Carl Banks -- http://mail.python.org/mailman/listinfo/python-list