Message300019
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. |
|
Date |
User |
Action |
Args |
2017-08-09 15:32:24 | albertogomcas | set | recipients:
+ albertogomcas, pitrou, docs@python |
2017-08-09 15:32:24 | albertogomcas | set | messageid: <1502292744.48.0.627996317333.issue31163@psf.upfronthosting.co.za> |
2017-08-09 15:32:24 | albertogomcas | link | issue31163 messages |
2017-08-09 15:32:24 | albertogomcas | create | |
|