diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-01-30 01:52:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-30 01:52:29 (GMT) |
commit | 3bcb630e078464185f605d0613d9633624273f74 (patch) | |
tree | 5921e30f6cf12668b2ab4219c1d7376e8e1136e1 /Doc | |
parent | 34679913fe9ad8a13d2f431abe8af9e340831b1d (diff) | |
download | cpython-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.rst | 2 |
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. |