[issue7325] tempfile.mkdtemp() does not return absolute pathname when relative dir is specified

Irit Katriel report at bugs.python.org
Mon Dec 6 09:33:45 EST 2021


Irit Katriel <iritkatriel at gmail.com> added the comment:

It's still the same in 3.11. I don't know whether this is something to fix in the code or in the docs.

>> import tempfile
>>> tempfile.mkdtemp(dir='.')
'./tmplvkt14za'
>>> tempfile.mkstemp(dir='.')
(3, '/Users/iritkatriel/src/cpython/tmp86ljh34k')

----------
nosy: +iritkatriel
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.2, Python 3.3, Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue7325>
_______________________________________


More information about the Python-bugs-list mailing list