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-09-08 04:00:12 +00:00
2000-09-01 23:29:29 +00:00
2000-09-01 23:29:29 +00:00
2001-01-25 20:04:14 +00:00
2001-08-02 04:15:00 +00:00
2001-09-05 22:52:50 +00:00
2000-09-01 23:29:29 +00:00
2000-08-03 16:24:25 +00:00
2001-08-10 21:38:04 +00:00
2001-09-12 19:12:49 +00:00
2001-06-09 07:59:43 +00:00
2001-10-03 12:09:30 +00:00
2001-08-10 20:28:28 +00:00
2000-09-01 23:29:29 +00:00
2001-08-02 04:15:00 +00:00
2001-09-13 05:38:56 +00:00
2001-09-10 21:28:20 +00:00
2001-08-29 23:45:25 +00:00
2001-08-02 04:15:00 +00:00
2001-06-18 22:08:13 +00:00
2000-09-01 23:29:29 +00:00
2000-09-01 23:29:29 +00:00
2001-09-10 20:52:51 +00:00
2000-09-01 23:29:29 +00:00
2001-04-23 14:08:49 +00:00
2001-10-05 20:41:38 +00:00
2001-09-10 20:52:51 +00:00
2001-09-10 20:52:51 +00:00
2001-01-28 00:27:39 +00:00
2000-09-01 23:29:29 +00:00
2001-08-12 21:52:24 +00:00
2001-08-02 04:15:00 +00:00
2001-09-13 05:38:56 +00:00
2000-09-01 23:29:29 +00:00
2001-10-08 15:18:27 +00:00
2001-10-07 03:54:51 +00:00
2001-08-08 05:00:18 +00:00
2001-03-02 06:10:17 +00:00
2001-07-16 05:37:24 +00:00
2001-09-28 17:15:23 +00:00
2001-07-26 21:34:59 +00:00
2000-12-22 21:51:10 +00:00
2001-08-31 17:40:15 +00:00
2001-10-05 21:50:08 +00:00
2000-11-03 08:18:37 +00:00
2001-09-10 22:09:30 +00:00
2001-07-26 21:34:59 +00:00
2001-10-01 19:50:06 +00:00
2001-07-19 12:19:27 +00:00
2001-10-05 21:55:19 +00:00
2001-08-31 17:40:15 +00:00
2000-09-01 23:29:29 +00:00
2001-07-09 12:30:54 +00:00
2000-07-09 00:55:06 +00:00
2001-09-11 01:41:59 +00:00
2001-09-20 20:46:19 +00:00
2001-08-11 21:51:24 +00:00
2000-12-15 22:01:39 +00:00
2001-08-08 05:00:18 +00:00
2000-09-01 23:29:29 +00:00
2001-09-10 23:37:46 +00:00
2001-01-19 09:45:02 +00:00
2001-09-20 10:35:46 +00:00
2001-10-05 22:06:45 +00:00