SIGN IN SIGN UP

typeobject.c, slot_tp_gettattr_hook(): fix the speedup hack -- the

test for getattribute==NULL was bogus because it always found
object.__getattribute__.  Pick it apart using the trick we learned
from slot_sq_item, and if it's just a wrapper around
PyObject_GenericGetAttr, zap it.  Also added a long XXX comment
explaining the consequences.
G
Guido van Rossum committed
1e1de1cf35ebd6b3cfcc20e40991fa437b8e9864
Parent: ae3b125