Author asvetlov
Recipients asvetlov, docs@python, pitrou, r.david.murray
Date 2016-08-28.20:03:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1472414614.15.0.405849285123.issue27886@psf.upfronthosting.co.za>
In-reply-to
Content
Just keeping the reference to `os.rename()`: https://docs.python.org/3/library/os.html#os.rename

Aha, `os.rename` says: "On Unix, if dst exists and is a file, it will be replaced silently if the user has permission." and "On Windows, if dst already exists, OSError will be raised even if it is a file."

Sorry, I've missed this.

Maybe it worth to add `.. warning:` section for both `os.rename` and `pathlib.Path.rename`?
History
Date User Action Args
2016-08-28 20:03:34asvetlovsetrecipients: + asvetlov, pitrou, r.david.murray, docs@python
2016-08-28 20:03:34asvetlovsetmessageid: <1472414614.15.0.405849285123.issue27886@psf.upfronthosting.co.za>
2016-08-28 20:03:34asvetlovlinkissue27886 messages
2016-08-28 20:03:34asvetlovcreate