From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 30 Jan 2023 01:52:29 +0000 (-0800) Subject: gh-98240: Updated Path.rename docs, when it is atomic (GH-98245) X-Git-Tag: v3.11.2~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3bcb630e078464185f605d0613d9633624273f74;p=thirdparty%2FPython%2Fcpython.git gh-98240: Updated Path.rename docs, when it is atomic (GH-98245) (cherry picked from commit 0023f51debeeeef483a6362ee12d67c4da086af3) Co-authored-by: Mateusz --- diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index e6db8caa16bb..e8bb00fc5743 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -1071,6 +1071,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.