Module Expr Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Import alias identifier Import alias identifier ImportFrom alias identifier TryExcept body ImportFrom alias identifier handlers ExceptHandler type NameLoad body ImportFrom alias identifier TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body FunctionDef arguments args NameParam defaults body Pass decorator_list orelse FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Num handlers ExceptHandler type NameLoad body Pass orelse AugAssignBitOr NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad decorator_list TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Import alias identifier Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpBitOr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If Call NameLoad NameLoad Str body AugAssignBitOr NameStore AttributeLoad NameLoad attr If Call NameLoad NameLoad Str body AugAssignBitOr NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad If Call NameLoad NameLoad Str body AugAssignBitOr NameStore AttributeLoad NameLoad attr If Call NameLoad NameLoad Str body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Num Assign NameStore Str Assign NameStore Call NameLoad If Call NameLoad NameLoad Str body Assign NameStore AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad Str body Assign NameStore AttributeLoad NameLoad attr orelse FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Return NameLoad orelse Return NameLoad decorator_list ClassDef bases body Expr Str Assign NameStore BinOpAdd BinOpAdd Str Str Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr TryFinally body Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore Str finalbody Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore ListLoad For NameStore TupleLoad Str Str Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str Str orelse Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr handlers ExceptHandler type TupleLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore NameLoad For NameStore NameLoad body If CompareNotEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore Call NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Delete NameDel NameDel Return NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad name NameStore body If CompareNotEq SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr body Break Pass Raise NameLoad TupleLoad AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args defaults body Expr Str Global identifier If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr TryFinally body If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad finalbody Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpAdd BinOpAdd NameLoad NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Num Expr Call NameLoad NameLoad Return TupleLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad name NameStore body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Continue Raise Raise NameLoad TupleLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args defaults body Expr Str Return NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args defaults body Expr Str Global identifier If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr TryFinally body If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad finalbody Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad If NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad Return Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Assign NameStore Call NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpAdd BinOpAdd NameLoad NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Num Return NameLoad handlers ExceptHandler type NameLoad name NameStore body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Continue Raise Raise NameLoad TupleLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Assign NameStore Call NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpAdd BinOpAdd NameLoad NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad body Return NameLoad Raise NameLoad TupleLoad AttributeLoad NameLoad attr Str decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call NameLoad NameLoad NameLoad If UnaryOpNot Call NameLoad Call NameLoad NameLoad Call NameLoad Num body Expr Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list If CompareNotEq AttributeLoad NameLoad attr Str body Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Str Num Str NameLoad NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad If CompareIn Str NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str NameLoad body AugAssignBitOr NameStore AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return Call NameLoad NameLoad NameLoad NameLoad decorator_list If BoolOpOr CompareNotEq AttributeLoad NameLoad attr Str CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore NameLoad orelse FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str Num Str NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad If CompareIn Str NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr NameLoad Raise decorator_list ClassDef bases body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Str Num Str NameLoad NameLoad body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body Return Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd NameLoad CompareGt Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Return Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Delete AttributeDel NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad AttributeLoad NameLoad attr attr body Raise Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults vararg body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list
N/A N/A Temporary files.

This module provides generic, low- and high-level interfaces for
creating temporary files and directories.  The interfaces listed
as "safe" just below can be used without fear of race conditions.
Those listed as "unsafe" cannot, and are provided for backward
compatibility only.

This module also provides some data items to the user:

  TMP_MAX  - maximum number of names that will be tried before
             giving up.
  template - the default prefix for all temporary names.
             You may change this to control the default prefix.
  tempdir  - If this is set to a string before the first use of
             any routine from this module, it will be considered as
             another candidate location to store temporary files.
 N/A __all__ N/A NamedTemporaryFile TemporaryFile SpooledTemporaryFile mkstemp mkdtemp mktemp TMP_MAX gettempprefix tempdir gettempdir N/A os _os N/A errno _errno random Random _Random N/A N/A cStringIO StringIO _StringIO N/A N/A N/A ImportError N/A StringIO StringIO _StringIO N/A N/A N/A fcntl _fcntl N/A N/A N/A ImportError N/A _set_cloexec N/A N/A fd N/A N/A N/A N/A N/A _set_cloexec N/A N/A fd N/A N/A N/A N/A N/A flags N/A N/A _fcntl fcntl fd N/A _fcntl F_GETFD 0 N/A N/A N/A IOError N/A N/A N/A N/A flags N/A _fcntl FD_CLOEXEC N/A N/A N/A _fcntl fcntl fd N/A _fcntl F_SETFD flags N/A N/A N/A N/A thread _thread N/A N/A N/A ImportError N/A N/A dummy_thread _thread N/A _allocate_lock N/A _thread allocate_lock N/A _text_openflags N/A N/A N/A _os O_RDWR N/A _os O_CREAT N/A _os O_EXCL N/A N/A hasattr _os O_NOINHERIT N/A N/A _text_openflags N/A _os O_NOINHERIT N/A N/A hasattr _os O_NOFOLLOW N/A N/A _text_openflags N/A _os O_NOFOLLOW N/A _bin_openflags _text_openflags N/A N/A hasattr _os O_BINARY N/A N/A _bin_openflags N/A _os O_BINARY N/A N/A hasattr _os TMP_MAX N/A N/A TMP_MAX N/A _os TMP_MAX N/A N/A TMP_MAX 10000 N/A template tmp N/A _once_lock N/A _allocate_lock N/A N/A hasattr _os lstat N/A N/A _stat N/A _os lstat N/A N/A N/A hasattr _os stat N/A N/A _stat N/A _os stat N/A _stat N/A N/A fn N/A N/A N/A N/A N/A f N/A open fn N/A N/A N/A IOError N/A N/A N/A _os error N/A N/A N/A f close N/A _exists N/A N/A fn N/A N/A N/A N/A N/A N/A _stat fn N/A N/A N/A N/A _os error N/A N/A False N/A N/A True N/A _RandomNameSequence N/A N/A N/A 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. N/A characters N/A N/A abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789_ __init__ N/A N/A self N/A N/A N/A N/A self mutex N/A _allocate_lock N/A N/A self rng N/A _Random N/A N/A self normcase N/A N/A _os path normcase N/A __iter__ N/A N/A self N/A N/A N/A self N/A next N/A N/A self N/A N/A N/A m N/A self mutex N/A c N/A self characters N/A choose N/A N/A self rng choice N/A N/A N/A m acquire N/A N/A N/A letters N/A N/A choose c N/A dummy 123456 N/A N/A N/A N/A m release N/A N/A N/A self normcase N/A N/A join letters N/A N/A _candidate_tempdir_list N/A N/A N/A N/A N/A Generate a list of candidate temporary directories which
    _get_default_tempdir will try. N/A dirlist N/A N/A envname N/A TMPDIR TEMP TMP N/A N/A dirname N/A N/A _os getenv envname N/A dirname N/A N/A N/A N/A dirlist append dirname N/A N/A N/A _os name riscos N/A N/A dirname N/A N/A _os getenv Wimp$ScrapDir N/A dirname N/A N/A N/A N/A dirlist append dirname N/A N/A N/A N/A _os name nt N/A N/A N/A N/A dirlist extend N/A c:\temp c:\tmp \temp \tmp N/A N/A N/A N/A dirlist extend N/A /tmp /var/tmp /usr/tmp N/A N/A N/A N/A N/A dirlist append N/A N/A _os getcwd N/A N/A N/A N/A AttributeError N/A _os error N/A N/A N/A N/A dirlist append N/A _os curdir N/A dirlist N/A _get_default_tempdir N/A N/A N/A N/A N/A Calculate the default directory to use for temporary files.
    This routine should be called exactly once.

    We determine whether or not a candidate temp dir is usable by
    trying to create and write to a file in that directory.  If this
    is successful, the test file is deleted.  To prevent denial of
    service, the name of the test file must be randomized. N/A namer N/A _RandomNameSequence N/A dirlist N/A _candidate_tempdir_list N/A flags _text_openflags N/A dir dirlist N/A N/A N/A dir N/A _os curdir N/A N/A dir N/A N/A N/A _os path normcase N/A N/A N/A _os path abspath dir N/A seq N/A xrange 100 N/A N/A name N/A N/A namer next N/A filename N/A N/A N/A _os path join dir name N/A N/A N/A fd N/A N/A _os open filename flags 384 N/A fp N/A N/A _os fdopen fd w N/A N/A N/A fp write blat N/A N/A N/A fp close N/A N/A N/A _os unlink filename N/A fp fd N/A dir N/A N/A N/A N/A OSError IOError N/A e N/A N/A N/A N/A e N/A 0 N/A _errno EEXIST N/A N/A N/A N/A IOError N/A N/A _errno ENOENT N/A No usable temporary directory found in %s dirlist N/A N/A _name_sequence None _get_candidate_names N/A N/A N/A N/A N/A Common setup sequence for all user-callable interfaces. N/A _name_sequence N/A N/A _name_sequence None N/A N/A N/A N/A _once_lock acquire N/A N/A N/A N/A _name_sequence None N/A N/A _name_sequence N/A _RandomNameSequence N/A N/A N/A N/A _once_lock release N/A _name_sequence N/A _mkstemp_inner N/A N/A dir pre suf flags N/A N/A N/A Code common to mkstemp, TemporaryFile, and NamedTemporaryFile. N/A names N/A _get_candidate_names N/A seq N/A xrange TMP_MAX N/A N/A name N/A N/A names next N/A file N/A N/A N/A _os path join dir N/A N/A pre name suf N/A N/A N/A fd N/A N/A _os open file flags 384 N/A N/A _set_cloexec fd N/A N/A fd N/A N/A N/A _os path abspath file N/A N/A N/A OSError N/A e N/A N/A N/A N/A e errno N/A _errno EEXIST N/A N/A N/A N/A IOError N/A N/A _errno EEXIST No usable temporary file name found N/A gettempprefix N/A N/A N/A N/A N/A Accessor for tempdir.template. N/A template N/A N/A tempdir None gettempdir N/A N/A N/A N/A N/A Accessor for tempfile.tempdir. N/A tempdir N/A N/A tempdir None N/A N/A N/A N/A _once_lock acquire N/A N/A N/A N/A tempdir None N/A N/A tempdir N/A _get_default_tempdir N/A N/A N/A N/A _once_lock release N/A tempdir N/A mkstemp N/A N/A suffix prefix dir text N/A template None False N/A N/A 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.

    If 'dir' is specified, the file will be created in that directory,
    otherwise a default directory is used.

    If 'text' is specified and true, the file is opened in text
    mode.  Else (the default) the file is opened in binary mode.  On
    some operating systems, this makes no difference.

    The file is readable and writable only by the creating user ID.
    If the operating system uses permission bits to indicate whether a
    file is executable, the file is executable by no one. The file
    descriptor is not inherited by children of this process.

    Caller is responsible for deleting the file when done with it.
     N/A N/A dir None N/A N/A dir N/A gettempdir N/A text N/A N/A flags _text_openflags N/A N/A flags _bin_openflags N/A N/A _mkstemp_inner dir prefix suffix flags N/A mkdtemp N/A N/A suffix prefix dir N/A template None N/A N/A 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.
     N/A N/A dir None N/A N/A dir N/A gettempdir N/A names N/A _get_candidate_names N/A seq N/A xrange TMP_MAX N/A N/A name N/A N/A names next N/A file N/A N/A N/A _os path join dir N/A N/A prefix name suffix N/A N/A N/A N/A N/A _os mkdir file 448 N/A file N/A N/A N/A OSError N/A e N/A N/A N/A N/A e errno N/A _errno EEXIST N/A N/A N/A N/A IOError N/A N/A _errno EEXIST No usable temporary directory name found N/A mktemp N/A N/A suffix prefix dir N/A template None N/A N/A 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.
     N/A N/A dir None N/A N/A dir N/A gettempdir N/A names N/A _get_candidate_names N/A seq N/A xrange TMP_MAX N/A N/A name N/A N/A names next N/A file N/A N/A N/A _os path join dir N/A N/A prefix name suffix N/A N/A N/A _exists file N/A N/A file N/A IOError N/A N/A _errno EEXIST No usable temporary filename found N/A _TemporaryFileWrapper N/A N/A N/A 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.
     __init__ N/A N/A self file name delete N/A True N/A N/A N/A self file file N/A N/A self name name N/A N/A self close_called False N/A N/A self delete delete N/A __getattr__ N/A N/A self name N/A N/A N/A file N/A N/A self __dict__ N/A file N/A a N/A getattr file name N/A N/A N/A issubclass N/A type a N/A type 0 N/A N/A N/A setattr self name a N/A a N/A __enter__ N/A N/A self N/A N/A N/A N/A N/A N/A self file __enter__ N/A self N/A N/A N/A N/A _os name nt N/A N/A unlink N/A _os unlink close N/A N/A self N/A N/A N/A N/A N/A self close_called N/A N/A N/A self close_called True N/A N/A N/A N/A self file close N/A N/A self delete N/A N/A N/A N/A self unlink N/A self name N/A __del__ N/A N/A self N/A N/A N/A N/A N/A self close N/A __exit__ N/A N/A self exc value tb N/A N/A N/A result N/A N/A N/A self file __exit__ exc value tb N/A N/A N/A self close N/A result N/A N/A NamedTemporaryFile N/A N/A mode bufsize suffix prefix dir delete N/A w+b -1 template None True N/A N/A 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
    when it is closed unless the 'delete' argument is set to False.
     N/A N/A dir None N/A N/A dir N/A gettempdir N/A N/A b mode N/A N/A flags _bin_openflags N/A N/A flags _text_openflags N/A N/A N/A N/A _os name nt delete N/A N/A flags N/A _os O_TEMPORARY N/A N/A fd name N/A _mkstemp_inner dir prefix suffix flags N/A file N/A N/A _os fdopen fd mode bufsize N/A N/A _TemporaryFileWrapper file name delete N/A N/A N/A N/A N/A _os name posix N/A N/A N/A _os sys platform cygwin N/A N/A TemporaryFile NamedTemporaryFile N/A TemporaryFile N/A N/A mode bufsize suffix prefix dir N/A w+b -1 template None N/A N/A 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.
         N/A N/A dir None N/A N/A dir N/A gettempdir N/A N/A b mode N/A N/A flags _bin_openflags N/A N/A flags _text_openflags N/A N/A fd name N/A _mkstemp_inner dir prefix suffix flags N/A N/A N/A N/A N/A _os unlink name N/A N/A N/A _os fdopen fd mode bufsize N/A N/A N/A N/A N/A N/A _os close fd N/A N/A SpooledTemporaryFile N/A N/A N/A Temporary file wrapper, specialized to switch from
    StringIO to a real file when it exceeds a certain size or
    when a fileno is needed.
     N/A _rolled False __init__ N/A N/A self max_size mode bufsize suffix prefix dir N/A 0 w+b -1 template None N/A N/A N/A self _file N/A _StringIO N/A N/A self _max_size max_size N/A N/A self _rolled False N/A N/A self _TemporaryFileArgs N/A mode bufsize suffix prefix dir N/A _check N/A N/A self file N/A N/A N/A N/A self _rolled N/A N/A N/A max_size N/A self _max_size N/A N/A max_size N/A N/A N/A file tell max_size N/A N/A N/A N/A self rollover N/A rollover N/A N/A self N/A N/A N/A N/A self _rolled N/A N/A N/A file N/A self _file N/A newfile N/A self _file N/A TemporaryFile N/A self _TemporaryFileArgs N/A N/A self _TemporaryFileArgs N/A N/A N/A newfile write N/A N/A file getvalue N/A N/A N/A newfile seek N/A N/A file tell 0 N/A N/A self _rolled True N/A __enter__ N/A N/A self N/A N/A N/A N/A N/A self _file closed N/A N/A N/A ValueError Cannot enter context with closed file N/A self N/A __exit__ N/A N/A self exc value tb N/A N/A N/A N/A N/A N/A self _file close N/A __iter__ N/A N/A self N/A N/A N/A N/A N/A N/A self _file __iter__ N/A close N/A N/A self N/A N/A N/A N/A N/A N/A self _file close N/A closed N/A N/A self N/A N/A N/A N/A N/A self _file closed N/A property encoding N/A N/A self N/A N/A N/A N/A N/A self _file encoding N/A property fileno N/A N/A self N/A N/A N/A N/A N/A self rollover N/A N/A N/A N/A self _file fileno N/A flush N/A N/A self N/A N/A N/A N/A N/A N/A self _file flush N/A isatty N/A N/A self N/A N/A N/A N/A N/A N/A self _file isatty N/A mode N/A N/A self N/A N/A N/A N/A N/A self _file mode N/A property name N/A N/A self N/A N/A N/A N/A N/A self _file name N/A property newlines N/A N/A self N/A N/A N/A N/A N/A self _file newlines N/A property next N/A N/A self N/A N/A N/A N/A N/A self _file next N/A read N/A N/A self N/A args N/A N/A N/A N/A N/A self _file read args N/A readline N/A N/A self N/A args N/A N/A N/A N/A N/A self _file readline args N/A readlines N/A N/A self N/A args N/A N/A N/A N/A N/A self _file readlines args N/A seek N/A N/A self N/A args N/A N/A N/A N/A N/A self _file seek args N/A softspace N/A N/A self N/A N/A N/A N/A N/A self _file softspace N/A property tell N/A N/A self N/A N/A N/A N/A N/A N/A self _file tell N/A truncate N/A N/A self N/A N/A N/A N/A N/A N/A self _file truncate N/A write N/A N/A self s N/A N/A N/A file N/A self _file N/A rv N/A N/A file write s N/A N/A N/A self _check file N/A rv N/A writelines N/A N/A self iterable N/A N/A N/A file N/A self _file N/A rv N/A N/A file writelines iterable N/A N/A N/A self _check file N/A rv N/A xreadlines N/A N/A self N/A args N/A N/A N/A N/A N/A self _file xreadlines args N/A N/A