Message410593
@barney, I am not sure that I understand your question.
I think adding another method `Pathlib.Path` and `Pathlib._Accessor` is my preferred way. The would be something like:
class _NormalAccessor(_Accessor):
...
self.move = shutil.move
class Path:
....
def move(self, src, dest):
self._accessor.move(self, target)
return self.__class__(target)
Now, this is hardly a patch. I need to submit a PR with proper docs, tests and NEWS entry... I will be glad to work on it. However, I guess I need someone to "sponsor" it and merge it. |
|
Date |
User |
Action |
Args |
2022-01-14 19:45:01 | Oz.Tiram | set | recipients:
+ Oz.Tiram, barneygale |
2022-01-14 19:45:01 | Oz.Tiram | set | messageid: <1642189501.21.0.68231289062.issue46317@roundup.psfhosted.org> |
2022-01-14 19:45:01 | Oz.Tiram | link | issue46317 messages |
2022-01-14 19:45:01 | Oz.Tiram | create | |
|