PyDocs
Standard Library
(3.15.2)
Quick Reference
Log In
Nav
Top
Examples
0
See Also
0
Notes
0
File and Directory Access
filecmp
fnmatch
glob
linecache
os.path
pathlib
pathlib.types
shutil
stat
tempfile
All modules
PyDocs
Standard Library
Quick Ref
Log In
Staging: this is not the live site, pydocs.org.
PyDocs
Standard Library
Quick Ref
Log In
Nav
Top
Examples
0
See Also
0
Notes
0
File and Directory Access
filecmp
fnmatch
glob
linecache
os
path
pathlib
types
shutil
stat
tempfile
All modules
gettempdir
tempfile
function
(
source
)
gettempdir()
Returns tempfile.tempdir as str.
© Python Software Foundation.
PSF License Version 2
·
Official docs ↗
Changed in 3.10
3.10:
Always returns a str. Previously it would return any tempdir value regardless of type so long as it was not None.
0 Examples
No examples for tempfile/gettempdir.
Log in
to add an example
See Also
No see-alsos for
tempfile/gettempdir
Log in
to add a see-also
0 Notes
No notes for
gettempdir
Log in
to add a note