Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.1k
[3.11] gh-51574: Document behaviour ofmkdtemp
on 3.11 and lower#103844
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
In the docs for 3.12, should we add "Changed in version 3.12: the return value is always an absolute path, even if dir is relative"? Would that be a separate PR? |
AlexWaygood commentedApr 25, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
The note has already been added to the docs for 3.12 as part of#94612: seehttps://github.com/python/cpython/pull/94612/files#diff-cd9226095497c724772acabf76ce71e39ae2d6ae5cee2a27c9ba22ac541b2f1eR295-R297 The online docs have yet to be updated; they're built every few hours, I think. |
A bug has been fixed in 3.12 where
mkdtemp
does not return an absolute path if a relative path is supplied to thedir argument (#94612). However, the bugfix is not suitable to be backported, meaning the bug will not be fixed in the 3.11 branch and lower.We should note the existing behaviour in the docs for the 3.11 branch, so that users are not misinformed about what will happen when the function is called.
Closes#51574