commit | 875eeaa193fd8e02d1a8b6d0d6f2768b55b0fff3 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Thu Oct 11 18:33:53 2001 +0000 |
committer | Guido van Rossum <guido@python.org> | Thu Oct 11 18:33:53 2001 +0000 |
tree | 815425f24c991e003a07ccd91df013ce11f2c645 | |
parent | 9e4ca10ce439845c939a9fa4264146a4cfa87fee [diff] |
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.)