From 0023f51debeeeef483a6362ee12d67c4da086af3 Mon Sep 17 00:00:00 2001 From: Mateusz Date: Sat, 29 Oct 2022 01:31:37 +0200 Subject: gh-98240: Updated Path.rename docs, when it is atomic (GH-98245) --- Doc/library/pathlib.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index a6daca9..944963e 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -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. -- cgit v0.12