[ python-Bugs-878572 ] pwd and grp modules error msg improvements

SourceForge.net noreply at sourceforge.net
Fri Jan 16 17:37:58 EST 2004


Bugs item #878572, was opened at 2004-01-16 17:37
Message generated for change (Tracker Item Submitted) made by Item Submitter
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: Open
Resolution: None
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.


----------------------------------------------------------------------

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