Antoine Pitrou added the comment: PyObject_GenericGetAttr is invoked from slot_tp_getattr_hook in typeobject.c via tp_getattro. The problem is that, when tp_getattro returns with an AttributeError, there is no way for slot_tp_getattr_hook to know whether the error was raised by PyObject_GenericGetAttr itself or by subsequent invocation of user code. Perhaps by adding an attribute to the raised AttributeError?
__________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1615> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com