R. David Murray added the comment:
Both the replace and rename functions will remain in the API, as they mirror
the os module, not the os itself. I agree that the naming is unfortunate, but
it has the weight of history behind it, so we are stuck with it. Issue 24229
rejected adding a copy me
New submission from Alberto Gomez-Casado:
I find the naming of Path.replace quite unfortunate, coming from the os.path
and basestring mindset, the expectation would be that it would change some
substring by another substring in the Path instance. Instead, it _moves_ the
file indicated by the P