[docs] [issue31163] Return destination path in Path.rename and Path.replace

R. David Murray report at bugs.python.org
Wed Aug 9 14:14:33 EDT 2017


R. David Murray added the comment:

I agree.  The normal python convention is that an immutable object returns the new value when an operation "changes" it, while a mutable object returns None.  It seems like replace and rename should follow this convention (and that it would also be convenient).

----------
nosy: +r.david.murray

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31163>
_______________________________________


More information about the docs mailing list