Oz Tiram <[email protected]> added the comment:
@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.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue46317>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com