summaryrefslogtreecommitdiffstats
path: root/Doc/library/tempfile.rst
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2019-09-09 15:54:34 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2019-09-09 15:54:34 (GMT)
commit370138ba9c29595df773cc057d17ea26fb6f21bd (patch)
tree2912100b1674bf408ad0628baf4383c7bd4557ea /Doc/library/tempfile.rst
parent9488a5289de2ceecdfd2098cd70d215f96c4e745 (diff)
downloadcpython-370138ba9c29595df773cc057d17ea26fb6f21bd.zip
cpython-370138ba9c29595df773cc057d17ea26fb6f21bd.tar.gz
cpython-370138ba9c29595df773cc057d17ea26fb6f21bd.tar.bz2
bpo-35803: Document and test dir=PathLike for tempfile (GH-11644)
Co-Authored-By: Ammar Askar <ammar_askar@hotmail.com>
Diffstat (limited to 'Doc/library/tempfile.rst')
-rw-r--r--Doc/library/tempfile.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/tempfile.rst b/Doc/library/tempfile.rst
index 0793e43..fff7a7a 100644
--- a/Doc/library/tempfile.rst
+++ b/Doc/library/tempfile.rst
@@ -191,6 +191,9 @@ The module defines the following user-callable items:
*suffix* and *prefix* now accept and default to ``None`` to cause
an appropriate default value to be used.
+ .. versionchanged:: 3.6
+ The *dir* parameter now accepts a :term:`path-like object`.
+
.. function:: mkdtemp(suffix=None, prefix=None, dir=None)
@@ -214,6 +217,9 @@ The module defines the following user-callable items:
*suffix* and *prefix* now accept and default to ``None`` to cause
an appropriate default value to be used.
+ .. versionchanged:: 3.6
+ The *dir* parameter now accepts a :term:`path-like object`.
+
.. function:: gettempdir()