[issue46733] pathlib.Path methods can raise NotImplementedError

Alex Waygood report at bugs.python.org
Sat Feb 12 15:28:10 EST 2022


Alex Waygood <Alex.Waygood at Gmail.com> added the comment:

I suppose it might also be worth considering moving `owner()` and `group()` to PosixPath. In practice, these unconditionally raise NotImplementedError on Windows, since the pwd and grp modules are not available on Windows. So, in an ideal world, they probably wouldn't exist on the common base class.

Again, though, that needs to be weighed against backwards-compatibility considerations.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46733>
_______________________________________


More information about the Python-bugs-list mailing list