[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).
Python tracker <report at bugs.python.org>
More information about the docs