diff options
| author | Berker Peksag <berker.peksag@gmail.com> | 2016-07-14 04:45:24 (GMT) |
|---|---|---|
| committer | Berker Peksag <berker.peksag@gmail.com> | 2016-07-14 04:45:24 (GMT) |
| commit | 663dacda4d14b9fe05c14ef1bea07cd61d01909d (patch) | |
| tree | 0e166c00745694cbb0e88909a8859e7050835db8 | |
| parent | 2162237dbe4c65afc4261e365bffe23a0d40296d (diff) | |
| parent | 2b8792137bf5e02ee4263822f818b31b68830f4b (diff) | |
| download | cpython-663dacda4d14b9fe05c14ef1bea07cd61d01909d.zip cpython-663dacda4d14b9fe05c14ef1bea07cd61d01909d.tar.gz cpython-663dacda4d14b9fe05c14ef1bea07cd61d01909d.tar.bz2 | |
Issue #27180: Merge from 3.5
| -rw-r--r-- | Doc/library/pathlib.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index 74c4807..737bc85 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -900,8 +900,9 @@ call fails (for example because the path doesn't exist): .. method:: Path.rename(target) - Rename this file or directory to the given *target*. *target* can be - either a string or another path object:: + Rename this file or directory to the given *target*. On Unix, if + *target* exists and is a file, it will be replaced silently if the user + has permission. *target* can be either a string or another path object:: >>> p = Path('foo') >>> p.open('w').write('some text') |
