Author selik
Recipients docs@python, pitrou, selik, serhiy.storchaka, xtreak
Date 2020-04-14.04:45:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1586839559.27.0.354244400803.issue40278@roundup.psfhosted.org>
In-reply-to
Content
The docs for ``os.replace`` says "If dst is a directory, OSError will be raised."  That's helpful, but the docs for ``pathlib.Path.replace`` make it seem like the target will be unconditionally replaced regardless of whether it's a file or directory.  Sure, there's the association of the two functions in the correspondence table in the pathlib docs, but that's easy to overlook when looking up ``pathlib.Path.replace``.

If nothing else, I guess this is a request to alter the docstring.
History
Date User Action Args
2020-04-14 04:45:59seliksetrecipients: + selik, pitrou, docs@python, serhiy.storchaka, xtreak
2020-04-14 04:45:59seliksetmessageid: <1586839559.27.0.354244400803.issue40278@roundup.psfhosted.org>
2020-04-14 04:45:59seliklinkissue40278 messages
2020-04-14 04:45:59selikcreate