Skip to content

Commit

Permalink
pythongh-98240: Updated Path.rename docs, when it is atomic (pythonGH…
Browse files Browse the repository at this point in the history
…-98245)

(cherry picked from commit 0023f51)

Co-authored-by: Mateusz <mateka@users.noreply.github.com>
  • Loading branch information
miss-islington and mateka authored Jan 30, 2023
1 parent 6aabbe2 commit efcab4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Doc/library/pathlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit efcab4d

Please sign in to comment.