[New-bugs-announce] [issue39901] `pathlib.Path.owner()` and `group()` use `pwd` and `grp` modules directly

Barney Gale report at bugs.python.org
Sun Mar 8 05:26:58 EDT 2020


New submission from Barney Gale <barney.gale at gmail.com>:

The implementations of `Path.owner()` and `Path.group()` directly import and use the `pwd` and `grp` modules. Given these modules provide information about the *local* system, I believe these implementations should instead live in `pathlib._NormalAccessor` for consistency with other methods that do "impure" things.

----------
components: Library (Lib)
messages: 363643
nosy: barneygale
priority: normal
severity: normal
status: open
title: `pathlib.Path.owner()` and `group()` use `pwd` and `grp` modules directly
versions: Python 3.9

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


More information about the New-bugs-announce mailing list