mirror of
https://github.com/python/cpython.git
synced 2026-01-02 21:43:49 +00:00
gh-98240: Updated Path.rename docs, when it is atomic (GH-98245)
(cherry picked from commit 0023f51deb)
Co-authored-by: Mateusz <mateka@users.noreply.github.com>
This commit is contained in:
parent
6aabbe2b15
commit
efcab4dd63
1 changed files with 2 additions and 0 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue