Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 663dacd

Browse files
committed
Issue #27180: Merge from 3.5
2 parents 2162237 + 2b87921 commit 663dacd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Doc/library/pathlib.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -900,8 +900,9 @@ call fails (for example because the path doesn't exist):
900900

901901
.. method:: Path.rename(target)
902902

903-
Rename this file or directory to the given *target*. *target* can be
904-
either a string or another path object::
903+
Rename this file or directory to the given *target*. On Unix, if
904+
*target* exists and is a file, it will be replaced silently if the user
905+
has permission. *target* can be either a string or another path object::
905906

906907
>>> p = Path('foo')
907908
>>> p.open('w').write('some text')

0 commit comments

Comments
 (0)