]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Another step in the right direction: when a new class's attribute
authorGuido van Rossum <guido@python.org>
Thu, 11 Oct 2001 18:33:53 +0000 (18:33 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 11 Oct 2001 18:33:53 +0000 (18:33 +0000)
commit875eeaa193fd8e02d1a8b6d0d6f2768b55b0fff3
tree815425f24c991e003a07ccd91df013ce11f2c645
parent9e4ca10ce439845c939a9fa4264146a4cfa87fee
Another step in the right direction: when a new class's attribute
corresponding to a dispatch slot (e.g. __getitem__ or __add__) is set,
calculate the proper dispatch slot and propagate the change to all
subclasses.  Because of multiple inheritance, there's no easy way to
avoid always recursing down the tree of subclasses.  Who cares?

(There's more to do, but this works.  There's also a test for this now.)
Lib/test/test_descr.py
Objects/typeobject.c