We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
mkdtemp
1 parent 7f70f1c commit d20758cCopy full SHA for d20758c
Doc/library/tempfile.rst
@@ -226,7 +226,10 @@ The module defines the following user-callable items:
226
The *prefix*, *suffix*, and *dir* arguments are the same as for
227
:func:`mkstemp`.
228
229
- :func:`mkdtemp` returns the absolute pathname of the new directory.
+ :func:`mkdtemp` returns the absolute pathname of the new directory if *dir*
230
+ is ``None`` or is an absolute path. If *dir* is a relative path,
231
+ :func:`mkdtemp` returns a relative path on Python 3.11 and lower. However,
232
+ on 3.12 it will return an absolute path in all situations.
233
234
.. audit-event:: tempfile.mkdtemp fullpath tempfile.mkdtemp
235
0 commit comments