summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-01-30 01:52:46 (GMT)
committerGitHub <noreply@github.com>2023-01-30 01:52:46 (GMT)
commitefcab4dd6353bdbfd39aeb3b6b23626579e91957 (patch)
tree9381466788ccd375681234b46e8178e412ee55f9 /Doc
parent6aabbe2b15d7c1ad671c76f166bf553e7ebc7253 (diff)
downloadcpython-efcab4dd6353bdbfd39aeb3b6b23626579e91957.zip
cpython-efcab4dd6353bdbfd39aeb3b6b23626579e91957.tar.gz
cpython-efcab4dd6353bdbfd39aeb3b6b23626579e91957.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 ee140e8..878b979 100644
--- a/Doc/library/pathlib.rst
+++ b/Doc/library/pathlib.rst
@@ -1068,6 +1068,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.