summaryrefslogtreecommitdiff
path: root/Python/compile.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-08-28 17:47:51 +0000
committerGuido van Rossum <guido@python.org>2001-08-28 17:47:51 +0000
commit607187325fa364bb170de354f7a12ec60a973ff7 (patch)
treed3b2e0ef5bb12257d814329f158012bf30ffef01 /Python/compile.c
parent2ac9c3eec5807b6032e5aef6481fcf67c1965efc (diff)
downloadcpython-git-607187325fa364bb170de354f7a12ec60a973ff7.tar.gz
Change in policy: when a slot_tp_xxx function looks for the __xxx__ method,
don't use getattr, but only look in the dict of the type and base types. This prevents picking up all sorts of weird stuff, including things defined by the metaclass when the object is a class (type). For this purpose, a helper function lookup_method() was added. One or two other places also use this.
Diffstat (limited to 'Python/compile.c')
0 files changed, 0 insertions, 0 deletions