From f2a0795119be0146d6184877b760d206e5455632 Mon Sep 17 00:00:00 2001 From: Mateusz Adamczyk Date: Wed, 19 Oct 2022 10:25:34 +0200 Subject: [PATCH] gh-98240: Updated Path.rename docs, to link os.rename docs --- Doc/library/pathlib.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index 4e9ea39895b43c..4c0aba1e94423a 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -1164,6 +1164,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.