[issue1615] descriptor protocol bug

Antoine Pitrou report at bugs.python.org
Sun Jan 20 19:09:31 CET 2008


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 <report at bugs.python.org>
<http://bugs.python.org/issue1615>
__________________________________


More information about the Python-bugs-list mailing list