]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-98240: Updated Path.rename docs, when it is atomic (GH-98245)
authorMateusz <mateka@users.noreply.github.com>
Fri, 28 Oct 2022 23:31:37 +0000 (01:31 +0200)
committerGitHub <noreply@github.com>
Fri, 28 Oct 2022 23:31:37 +0000 (16:31 -0700)
Doc/library/pathlib.rst

index a6daca9789a37f6d3ee2a34c0e96ad55f0122fe5..944963e1e1ae79e74a0de71cace6833faa6a331f 100644 (file)
@@ -1186,6 +1186,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.