This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients asvetlov, docs@python, eryksun, ezio.melotti, pitrou, r.david.murray
Date 2021-03-13.00:14:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1615594445.87.0.913061860683.issue27886@roundup.psfhosted.org>
In-reply-to
Content
The pathlib documentation of Path.rename() says "[o]n Unix, if target exists and is a file, it will be replaced silently if the user has permission". This leaves the behavior on Windows in question. The reader has to scroll down to the correspondence table to link to the documentation of os.rename() and presume that Path.rename() also raises FileExistsError for this case. The Path.rename() docs should just state upfront that "[o]n Windows, if target exists, FileExistsError will be raised".
History
Date User Action Args
2021-03-13 00:14:05eryksunsetrecipients: + eryksun, pitrou, ezio.melotti, r.david.murray, asvetlov, docs@python
2021-03-13 00:14:05eryksunsetmessageid: <1615594445.87.0.913061860683.issue27886@roundup.psfhosted.org>
2021-03-13 00:14:05eryksunlinkissue27886 messages
2021-03-13 00:14:05eryksuncreate