]> granicus.if.org Git - python/commit
typeobject.c, slot_tp_gettattr_hook(): fix the speedup hack -- the
authorGuido van Rossum <guido@python.org>
Wed, 3 Oct 2001 13:58:35 +0000 (13:58 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 3 Oct 2001 13:58:35 +0000 (13:58 +0000)
commit1e1de1cf35ebd6b3cfcc20e40991fa437b8e9864
treefa5a50c8634bd19a3c6e74f090208b501ad4af2c
parentae3b1258e48281fd44f48a0a93ff582ae57f6c70
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.
Objects/typeobject.c