[issue4261] The pwd module doesn't distinguish between errors and no user
STINNER Victor
report at bugs.python.org
Wed Nov 5 10:00:28 CET 2008
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
You're right. getpwnam() and getpwuid() have to check errno. A
different error should be raised, something like:
RuntimeError("getpwnam(%s) failure: %s" % (name, strerror(errno)))
The grp should also be affected.
----------
nosy: +haypo
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4261>
_______________________________________
More information about the Python-bugs-list
mailing list