Files
cpython/Include
Guido van Rossum 1c45073aba Keep track of a type's subclasses (subtypes), in tp_subclasses, which
is a list of weak references to types (new-style classes).  Make this
accessible to Python as the function __subclasses__ which returns a
list of types -- we don't want Python programmers to be able to
manipulate the raw list.

In order to make this possible, I also had to add weak reference
support to type objects.

This will eventually be used together with a trap on attribute
assignment for dynamic classes for a major speed-up without losing the
dynamic properties of types: when a __foo__ method is added to a
class, the class and all its subclasses will get an appropriate tp_foo
slot function.
2001-10-08 15:18:27 +00:00
..
2001-01-25 20:04:14 +00:00
2001-08-02 04:15:00 +00:00
2001-08-10 21:38:04 +00:00
2001-08-10 20:28:28 +00:00
2001-08-02 04:15:00 +00:00
2001-03-02 06:10:17 +00:00
2001-09-28 17:15:23 +00:00
2001-10-05 21:55:19 +00:00
2001-10-05 22:06:45 +00:00