All Samples(5646)  |  Call(5267)  |  Derive(0)  |  Import(379)
User-callable function to create and return a unique temporary
directory.  The return value is the pathname of the directory.

Arguments are as for mkstemp, except that the 'text' argument is
not accepted.

The directory is readable, writable, and searchable only by the
creating user.

Caller is responsible for deleting the directory when done with it.

All Samples(3570)  |  Call(3285)  |  Derive(0)  |  Import(285)
User-callable function to create and return a unique temporary
file.  The return value is a pair (fd, name) where fd is the
file descriptor returned by os.open, and name is the filename.

If 'suffix' is specified, the file name will end with that suffix,
otherwise there will be no suffix.

If 'prefix' is specified, the file name will begin with that prefix,
otherwise a default prefix is used.
(more...)

All Samples(3076)  |  Call(2861)  |  Derive(0)  |  Import(215)
User-callable function to return a unique temporary file name.  The
file is not created.

Arguments are as for mkstemp, except that the 'text' argument is
not accepted.

This function is unsafe and should not be used.  The file name
refers to a file that did not exist at some point, but by the time
you get around to creating it, someone else may have beaten you to
the punch.

All Samples(2586)  |  Call(2384)  |  Derive(0)  |  Import(202)
Create and return a temporary file.
Arguments:
'prefix', 'suffix', 'dir' -- as for mkstemp.
'mode' -- the mode argument to os.fdopen (default "w+b").
'bufsize' -- the buffer size argument to os.fdopen (default -1).
The file is created as mkstemp() would do it.

Returns an object with a file-like interface.  The file has no
name, and will cease to exist when it is closed.

All Samples(1661)  |  Call(1494)  |  Derive(0)  |  Import(167)
Accessor for tempfile.tempdir.

All Samples(1540)  |  Call(1425)  |  Derive(0)  |  Import(115)
Create and return a temporary file.
Arguments:
'prefix', 'suffix', 'dir' -- as for mkstemp.
'mode' -- the mode argument to os.fdopen (default "w+b").
'bufsize' -- the buffer size argument to os.fdopen (default -1).
'delete' -- whether the file is deleted on close (default True).
The file is created as mkstemp() would do it.

Returns an object with a file-like interface; the name of the file
is accessible as file.name.  The file will be automatically deleted(more...)

All Samples(140)  |  Call(137)  |  Derive(0)  |  Import(3)
Temporary file wrapper, specialized to switch from
StringIO to a real file when it exceeds a certain size or
when a fileno is needed.

All Samples(105)  |  Call(105)  |  Derive(0)  |  Import(0)
Common setup sequence for all user-callable interfaces.

All Samples(99)  |  Call(97)  |  Derive(0)  |  Import(2)
Accessor for tempdir.template.

All Samples(70)  |  Call(70)  |  Derive(0)  |  Import(0)
Generate a list of candidate temporary directories which
_get_default_tempdir will try.

All Samples(36)  |  Call(36)  |  Derive(0)  |  Import(0)
An instance of _RandomNameSequence generates an endless
sequence of unpredictable strings which can safely be incorporated
into file names.  Each string is six characters long.  Multiple
threads can safely use the same instance at the same time.

_RandomNameSequence is an iterator.

All Samples(35)  |  Call(35)  |  Derive(0)  |  Import(0)
Code common to mkstemp, TemporaryFile, and NamedTemporaryFile.

All Samples(6)  |  Call(0)  |  Derive(0)  |  Import(6)
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

All Samples(4)  |  Call(0)  |  Derive(1)  |  Import(3)
Temporary file wrapper

This class provides a wrapper around files opened for
temporary use.  In particular, it seeks to automatically
remove the file when it is no longer needed.

All Samples(3)  |  Call(0)  |  Derive(0)  |  Import(3)
No Document.

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
No Document.

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
No Document.

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
No Document.