[ python-Bugs-878572 ] pwd and grp modules error msg improvements
SourceForge.net
noreply at sourceforge.net
Tue Jan 20 16:08:30 EST 2004
Bugs item #878572, was opened at 2004-01-16 17:37
Message generated for change (Comment added) made by bwarsaw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=878572&group_id=5470
Category: Extension Modules
Group: Python 2.4
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Barry A. Warsaw (bwarsaw)
Assigned to: Nobody/Anonymous (nobody)
Summary: pwd and grp modules error msg improvements
Initial Comment:
pwd.getpwnam(), pwd.getpwuid(), grp.getgrnam(), and
grp.getgrgid() all produce KeyErrors when the integer
or string they're passed can't be found. That's all
fine and good, except that they don't include the name
or uid in the error message. This can really suck for
debugging.
The attached patch improves the error message by
including the uid and name in the error string.
This should be backported to Python 2.3 as well.
----------------------------------------------------------------------
>Comment By: Barry A. Warsaw (bwarsaw)
Date: 2004-01-20 16:08
Message:
Logged In: YES
user_id=12800
Applied to Python 2.4 and 2.3-maint.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=878572&group_id=5470
More information about the Python-bugs-list
mailing list