tempfile
index
/usr/lib/python2.2/tempfile.py

Temporary files and filenames.

 
Modules
            
os
 
Classes
            
TemporaryFileWrapper
 
class TemporaryFileWrapper
      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.
 
   Methods defined here:
__del__(self)
__getattr__(self, name)
__init__(self, file, path)
close(self)

Data and non-method functions defined here:
__doc__ = 'Temporary file wrapper\n\n This class provid...the file when it is\n no longer needed.\n '
__module__ = 'tempfile'
unlink = <built-in function unlink>
unlink(path) -> None
Remove a file (same as remove(path)).
 
Functions
            
TemporaryFile(mode='w+b', bufsize=-1, suffix='')
Create and return a temporary file (opened read-write by default).
gettempdir()
Function to calculate the directory to use.
gettempprefix()
Function to calculate a prefix of the filename to use.
 
This incorporates the current process id on systems that support such a
notion, so that concurrent processes don't generate the same prefix.
mktemp(suffix='')
User-callable function to return a unique temporary file name.
 
Data
             __all__ = ['mktemp', 'TemporaryFile', 'tempdir', 'gettempprefix']
__file__ = '/usr/lib/python2.2/tempfile.pyc'
__name__ = 'tempfile'
_counter = <tempfile._ThreadSafeCounter instance>
tempdir = None
template = None