From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 30 Jan 2023 01:52:46 +0000 (-0800) Subject: gh-98240: Updated Path.rename docs, when it is atomic (GH-98245) X-Git-Tag: v3.10.10~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efcab4dd6353bdbfd39aeb3b6b23626579e91957;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 ee140e871cb4..878b97926bd2 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -1068,6 +1068,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.