Index: Objects/methodobject.c =================================================================== --- Objects/methodobject.c (revision 67238) +++ Objects/methodobject.c (working copy) @@ -373,7 +373,9 @@ } chain = chain->link; } - PyErr_SetString(PyExc_AttributeError, name); + PyErr_Format(PyExc_AttributeError, + "'%.50s' object has no attribute '%.400s'", + self->ob_type->tp_name, name); return NULL; }