Mojo module
tempfile
Implements tempfile methods.
You can import a method from the tempfile package. For example:
from tempfile import gettempdircomptime values
TMP_MAX
comptime TMP_MAX = 10000
Maximum number of attempts when generating unique temporary file names.
Structs
-
NamedTemporaryFile: A handle to a temporary file. -
TemporaryDirectory: A temporary directory.
Functions
-
gettempdir: Return the default directory to use for temporary files. -
mkdtemp: Create a temporary directory. Caller is responsible for deleting the directory when done with it.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!