The bug and attached patch improves the error messages when pwd.getpwnam() and friends raises a KeyError. I expect the change to be uncontroversial for Python 2.4 and I believe it should be uncontroversial for Python 2.3, since it affects only the error string. I'll commit these changes in the next few days unless objections are raised. -Barry