summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-08-16 15:42:49 (GMT)
committerGuido van Rossum <guido@python.org>2001-08-16 15:42:49 (GMT)
commit360e031f8d338b6be22ccd989473310864c454af (patch)
tree9e07e91d0c7963ed5db6760172dc3fff6571443a
parent7a401795db50207c49b5d58355acf1b0842dab55 (diff)
downloadcpython-360e031f8d338b6be22ccd989473310864c454af.zip
cpython-360e031f8d338b6be22ccd989473310864c454af.tar.gz
cpython-360e031f8d338b6be22ccd989473310864c454af.tar.bz2
I should add that the previous checkin also added a slight
optimization for dynamic classes. If __getattr__ is not found as an attribute on the type, slot_tp_getattro replaces itself with PyObject_GenericGetAttr. This means you can't add a __getattr__ method to a class after the fact -- but you can still *change* a __getattr__ method into a different one. (A similar restriction exists for classic classes.)
0 files changed, 0 insertions, 0 deletions