gh-98240: Updated Path.rename docs, when it is atomic (GH-98245)

This commit is contained in:
Mateusz 2022-10-29 01:31:37 +02:00 committed by GitHub
parent e089f23bbb
commit 0023f51deb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.