Home | Trees | Index | Help |
---|
Package svnmailer :: Module util :: Class TempFile |
|
object
--+
|
TempFile
Tempfile container class
The class contains a destructor that removes the created file. This differs from the stuff in tempfile, which removes the file, when it's closed.
The mode is fixed to w+; a b is added if the text
argument is false (see __init__
)
Method Summary | |
---|---|
Initialization | |
Unlink the file name | |
Close the file (but don't delete it) | |
Inherited from object | |
x.__delattr__('name') <==> del x.name... | |
x.__getattribute__('name') <==> x.name... | |
x.__hash__() <==> hash(x)... | |
helper for pickle... | |
helper for pickle... | |
x.__repr__() <==> repr(x)... | |
x.__setattr__('name', value) <==> x.name = value... | |
x.__str__() <==> str(x)... | |
Inherited from type | |
T.__new__(S, ...) -> a new object with type S, a subtype of T... |
Instance Variable Summary | |
---|---|
file | fp : The file descriptor |
str | name : The full name of the file |
Method Details |
---|
__init__(self,
tempdir=None,
text=False)
Initialization |
__del__(self)
Unlink the file name |
close(self)Close the file (but don't delete it)
|
Instance Variable Details |
---|
fpThe file descriptor
|
nameThe full name of the file
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.0 on Sun Sep 25 20:49:16 2005 | http://epydoc.sf.net |