diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-01-29 17:52:46 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-29 17:52:46 -0800 |
| commit | efcab4dd6353bdbfd39aeb3b6b23626579e91957 (patch) | |
| tree | 9381466788ccd375681234b46e8178e412ee55f9 | |
| parent | 6aabbe2b15d7c1ad671c76f166bf553e7ebc7253 (diff) | |
| download | cpython-git-efcab4dd6353bdbfd39aeb3b6b23626579e91957.tar.gz | |
gh-98240: Updated Path.rename docs, when it is atomic (GH-98245)
(cherry picked from commit 0023f51debeeeef483a6362ee12d67c4da086af3)
Co-authored-by: Mateusz <mateka@users.noreply.github.com>
| -rw-r--r-- | Doc/library/pathlib.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index ee140e871c..878b97926b 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. |
