From: Mateusz Date: Fri, 28 Oct 2022 23:31:37 +0000 (+0200) Subject: gh-98240: Updated Path.rename docs, when it is atomic (GH-98245) X-Git-Tag: v3.12.0a2~207 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0023f51debeeeef483a6362ee12d67c4da086af3;p=thirdparty%2FPython%2Fcpython.git gh-98240: Updated Path.rename docs, when it is atomic (GH-98245) --- diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index a6daca9789a3..944963e1e1ae 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.