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 method.  

Having replace and rename return a value strikes me as a good idea.  Please 
open a separate issue with that enhancement proposal, and nosy 'pitrou', who is 
the author of the pathlib module.

nosy: +r.david.murray
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list

Reply via email to