tempfile
index
/usr/lib/python1.6/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.
__del__
(self)
__getattr__
(self, name)
__init__
(self, file, path)
close
(self)
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.
mktemp
(suffix
=''
)
User-callable function to return a unique temporary file name.
Data
__file__
= '/usr/lib/python1.6/tempfile.pyc'
__name__
= 'tempfile'
_pid
= None
counter
= 0
tempdir
= None
template
= None