commit | 1e1de1cf35ebd6b3cfcc20e40991fa437b8e9864 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed Oct 03 13:58:35 2001 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed Oct 03 13:58:35 2001 +0000 |
tree | fa5a50c8634bd19a3c6e74f090208b501ad4af2c | |
parent | ae3b1258e48281fd44f48a0a93ff582ae57f6c70 [diff] |
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.