ID EN
Tempfile

name

Python 3.11

The directory name can be retrieved from the name attribute of the returned object. When the returned object is used as a context manager, the name will be assigned to the target of the as clause in the with statement, if there is one.

Syntax

PYTHON
name

See Also

context manager with