[Python-Dev] Type/class differences (Re: Sets: elt in dict, lst.include)
Guido van Rossum
guido@digicool.com
Sun, 04 Feb 2001 23:47:26 -0500
> > The old type/class split: list is a type, and types spell their "method
> > tables" in ways that have little in common with how classes do it.
>
> Maybe as a first step towards type/class unification one
> day, we could add __xxx__ attributes to all the builtin
> types, and start to think of the method table as the
> definitive source of all methods, with the tp_xxx slots
> being a sort of cache for the most commonly used ones.
Yes, I've often thought that we should be able to heal the split for
95% by using a few well-aimed tricks like this. Later...
--Guido van Rossum (home page: http://www.python.org/~guido/)