[issue31154] Path.replace and Path.rename naming, behavior and documentation

R. David Murray report at bugs.python.org
Wed Aug 9 09:30:18 EDT 2017


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 <report at bugs.python.org>
<http://bugs.python.org/issue31154>
_______________________________________


More information about the Python-bugs-list mailing list