Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Data Structures | |
class | TemporaryFileWrapper |
class | _ThreadSafeCounter |
class | _DummyMutex |
Functions | |
def | gettempdir |
def | gettempprefix |
def | mktemp |
def | TemporaryFile |
Variables | |
list | __all__ = ["mktemp", "TemporaryFile", "tempdir", "gettempprefix"] |
tempdir = None | |
template = None | |
tuple | _tempdir_lock = _DummyMutex() |
tuple | _counter = _ThreadSafeCounter(thread.allocate_lock()) |
Temporary files and filenames.
def tempfile.gettempdir | ( | ) |
Function to calculate the directory to use.
Definition at line 15 of file tempfile.py.
References os.getenv(), gettempprefix(), and aifc.open().
def tempfile.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.
Definition at line 123 of file tempfile.py.
def tempfile.mktemp | ( | suffix = "" ) |
User-callable function to return a unique temporary file name.
Definition at line 137 of file tempfile.py.
References gettempdir(), gettempprefix(), and locale.str().
def tempfile.TemporaryFile | ( | mode = 'w+b' , |
|
bufsize = -1 , |
|||
suffix = "" |
|||
) |
Create and return a temporary file (opened read-write by default).
Definition at line 184 of file tempfile.py.
References mktemp(), and aifc.open().
list __all__ = ["mktemp", "TemporaryFile", "tempdir", "gettempprefix"] |
Definition at line 9 of file tempfile.py.
tuple _counter = _ThreadSafeCounter(thread.allocate_lock()) |
Definition at line 240 of file tempfile.py.
tuple _tempdir_lock = _DummyMutex() |
Definition at line 236 of file tempfile.py.
tempdir = None |
Definition at line 12 of file tempfile.py.
string template = None |
Definition at line 13 of file tempfile.py.