Skip to content

Commit 3bcb630

Browse files
gh-98240: Updated Path.rename docs, when it is atomic (GH-98245)
(cherry picked from commit 0023f51) Co-authored-by: Mateusz <[email protected]>
1 parent 3467991 commit 3bcb630

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Doc/library/pathlib.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,6 +1071,8 @@ call fails (for example because the path doesn't exist).
10711071
relative to the current working directory, *not* the directory of the Path
10721072
object.
10731073

1074+
It is implemented in terms of :func:`os.rename` and gives the same guarantees.
1075+
10741076
.. versionchanged:: 3.8
10751077
Added return value, return the new Path instance.
10761078

0 commit comments

Comments
 (0)