os.tmpfile()

Christian Heimes lists at cheimes.de
Wed Jan 2 03:41:00 EST 2008


jyoung79 at kc.rr.com wrote:
> Can anyone elaborate on how 'os.tmpfile()' works?  I was thinking it would create some sort of temporary file I could quickly add text too and then when I was finished would automatically get rid of it.  Here's my questions:

Please don't use os.tmpfile(). It's not safe and exists only for legacy
reasons. The tempfile module contains methods to create safe temporary
files and directories.

Christian



More information about the Python-list mailing list