[Python-Dev] Improved tmpfile module

Fredrik Lundh fredrik@pythonware.com
Tue, 25 Jun 2002 17:26:57 +0200


Greg wrote:

> > (fd, name) = mkstemp(suffix="", binary=1): Creates a temporary file,
> > returning both an OS-level file descriptor open on it and its name.
> > This is useful in situations where you need to know the name of the
> > temporary file, but can't risk the race in mktemp.
> 
> +1 except for the name.  What does the "s" stand for?

"safe"?  or at least "safer"?  unix systems usually have both "mktemp"
and "mkstemp", but I think they're both deprecated under SUSv2 (use
"tmpfile" instead).

</F>