Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0023f51

Browse files
authored
gh-98240: Updated Path.rename docs, when it is atomic (GH-98245)
1 parent e089f23 commit 0023f51

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
@@ -1186,6 +1186,8 @@ call fails (for example because the path doesn't exist).
11861186
relative to the current working directory, *not* the directory of the Path
11871187
object.
11881188

1189+
It is implemented in terms of :func:`os.rename` and gives the same guarantees.
1190+
11891191
.. versionchanged:: 3.8
11901192
Added return value, return the new Path instance.
11911193

0 commit comments

Comments
 (0)