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 <>
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".
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: <>
2021-03-13 00:14:05eryksunlinkissue27886 messages
2021-03-13 00:14:05eryksuncreate