summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-01-30 01:52:29 (GMT)
committerGitHub <noreply@github.com>2023-01-30 01:52:29 (GMT)
commit3bcb630e078464185f605d0613d9633624273f74 (patch)
tree5921e30f6cf12668b2ab4219c1d7376e8e1136e1 /Doc
parent34679913fe9ad8a13d2f431abe8af9e340831b1d (diff)
downloadcpython-3bcb630e078464185f605d0613d9633624273f74.zip
cpython-3bcb630e078464185f605d0613d9633624273f74.tar.gz
cpython-3bcb630e078464185f605d0613d9633624273f74.tar.bz2
gh-98240: Updated Path.rename docs, when it is atomic (GH-98245)
(cherry picked from commit 0023f51debeeeef483a6362ee12d67c4da086af3) Co-authored-by: Mateusz <mateka@users.noreply.github.com>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/pathlib.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst
index e6db8ca..e8bb00f 100644
--- a/Doc/library/pathlib.rst
+++ b/Doc/library/pathlib.rst
@@ -1071,6 +1071,8 @@ call fails (for example because the path doesn't exist).
relative to the current working directory, *not* the directory of the Path
object.
+ It is implemented in terms of :func:`os.rename` and gives the same guarantees.
+
.. versionchanged:: 3.8
Added return value, return the new Path instance.