Skip to content

Commit efcab4d

Browse files
gh-98240: Updated Path.rename docs, when it is atomic (GH-98245)
(cherry picked from commit 0023f51) Co-authored-by: Mateusz <mateka@users.noreply.github.com>
1 parent 6aabbe2 commit efcab4d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Doc/library/pathlib.rst

+2
Original file line numberDiff line numberDiff line change
@@ -1068,6 +1068,8 @@ call fails (for example because the path doesn't exist).
10681068
relative to the current working directory, *not* the directory of the Path
10691069
object.
10701070

1071+
It is implemented in terms of :func:`os.rename` and gives the same guarantees.
1072+
10711073
.. versionchanged:: 3.8
10721074
Added return value, return the new Path instance.
10731075

0 commit comments

Comments
 (0)