[docs] [issue27180] Doc/pathlib: Please describe the behaviour of Path().rename() is depends on the platform (same as os.rename())
Evelyn Mitchell
report at bugs.python.org
Tue Jun 7 13:45:50 EDT 2016
Evelyn Mitchell added the comment:
*** cpythonmod/Doc/library/pathlib.rst 2016-06-07 11:29:07.200774979 -0600
--- cpython/Doc/library/pathlib.rst 2016-06-07 11:29:59.372777817 -0600
***************
*** 887,896 ****
.. method:: Path.rename(target)
! 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')
--- 887,894 ----
.. method:: Path.rename(target)
! Rename this file or directory to the given *target*. *target* can be
! either a string or another path object::
>>> p = Path('foo')
>>> p.open('w').write('some text')
----------
nosy: +Evelyn Mitchell
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27180>
_______________________________________
More information about the docs
mailing list