mirror of
https://github.com/python/cpython.git
synced 2025-09-11 11:17:16 +00:00
gh-98240: Updated Path.rename docs, when it is atomic (GH-98245)
This commit is contained in:
parent
e089f23bbb
commit
0023f51deb
1 changed files with 2 additions and 0 deletions
|
@ -1186,6 +1186,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