This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author albertogomcas
Recipients albertogomcas, docs@python, pitrou
Date 2017-08-09.15:32:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1502292744.48.0.627996317333.issue31163@psf.upfronthosting.co.za>
In-reply-to
Content
Extracted from issue31154

Both calls lack any kind of return, which leads me to expect after a rename/replace the Path instance would be changed to the new path. This is not the case (reading the PEP I have seen Path instances are kind of immutable), after the call the Path instance keeps "pointing" to the previous (and quite likely now useless) path. 

Returning the new path would be a reasonable option. In any case, I think the documentation should mention this behavior explicitly.
History
Date User Action Args
2017-08-09 15:32:24albertogomcassetrecipients: + albertogomcas, pitrou, docs@python
2017-08-09 15:32:24albertogomcassetmessageid: <1502292744.48.0.627996317333.issue31163@psf.upfronthosting.co.za>
2017-08-09 15:32:24albertogomcaslinkissue31163 messages
2017-08-09 15:32:24albertogomcascreate