summaryrefslogtreecommitdiffstats
path: root/Python/getopt.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-09-12 19:19:18 (GMT)
committerGuido van Rossum <guido@python.org>2001-09-12 19:19:18 (GMT)
commit7851eea5f22012297151644fb598b2131e035037 (patch)
treecf3018f087f23085f5c7142664c12303910abff6 /Python/getopt.c
parent2400fa4ad115e8ebe75c61c3bb96bd7cf2364dd4 (diff)
downloadcpython-7851eea5f22012297151644fb598b2131e035037.zip
cpython-7851eea5f22012297151644fb598b2131e035037.tar.gz
cpython-7851eea5f22012297151644fb598b2131e035037.tar.bz2
build_class(): one more (hopefully the last) step on the way to
backwards compatibility. When using the class of the first base as the metaclass, use its __class__ attribute in preference over its ob_type slot. This ensures that we can still use classic classes as metaclasse, as shown in the original "Metaclasses" essay. This also makes all the examples in Demo/metaclasses/ work again (maybe these should be turned into a test suite?).
Diffstat (limited to 'Python/getopt.c')
0 files changed, 0 insertions, 0 deletions