mirror of
https://github.com/python/cpython.git
synced 2025-10-02 05:12:23 +00:00
[3.11] gh-51574: Document behaviour of mkdtemp
on 3.11 and lower (#103844)
This commit is contained in:
parent
7f70f1c5cc
commit
d20758c4ef
1 changed files with 4 additions and 1 deletions
|
@ -226,7 +226,10 @@ The module defines the following user-callable items:
|
||||||
The *prefix*, *suffix*, and *dir* arguments are the same as for
|
The *prefix*, *suffix*, and *dir* arguments are the same as for
|
||||||
:func:`mkstemp`.
|
:func:`mkstemp`.
|
||||||
|
|
||||||
:func:`mkdtemp` returns the absolute pathname of the new directory.
|
:func:`mkdtemp` returns the absolute pathname of the new directory if *dir*
|
||||||
|
is ``None`` or is an absolute path. If *dir* is a relative path,
|
||||||
|
:func:`mkdtemp` returns a relative path on Python 3.11 and lower. However,
|
||||||
|
on 3.12 it will return an absolute path in all situations.
|
||||||
|
|
||||||
.. audit-event:: tempfile.mkdtemp fullpath tempfile.mkdtemp
|
.. audit-event:: tempfile.mkdtemp fullpath tempfile.mkdtemp
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue