This module generates temporary files and directories. It works
on all supported platforms. In version 2.3 of Python, this
module was overhauled for enhanced security. It now provides
three new functions, NamedTemporaryFile(), mkstemp(), and
mkdtemp(), which should eliminate all remaining need to use the
insecure mktemp() function. Temporary file names created by this
module no longer contain the process ID; instead a string of six
random characters is used. Also, all the user-callable functions
now take additional arguments which allow direct control over
the location and name of temporary files. It is no longer
necessary to use the global tempdir and template variables. To
maintain backward compatibility, the argument order is somewhat
odd; it is recommended to use keyword arguments for clarity. The
module defines the following user-callable functions: Return a
file-like object that can be used as a temporary storage area.
The file is created using mkstemp(). It will be destroyed as
soon as it is closed (in