New submission from Barney Gale <barney.g...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue39901>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to