[Python-Dev] Type/class (original) (raw)

Jeremy Hylton jeremy@digicool.com
Thu, 10 May 2001 17:59:34 -0400 (EDT)


"PP" == Paul Prescod <paulp@ActiveState.com> writes:

PP> I would like to argue that "plain old C types" should act as if PP> they have __dict__s for consistency with other types. It is PP> sometimes useful to be able to annotate objects by adding PP> attributes to them. But this only works with class instance PP> objects, not instances of types.

Every type should have an dict of type dict? Then every dict must have an dict, including the dict of dict?

Once every object has an dict, every object will be mutable. Then no object will be usable as a dict key and we can get rid of dict's entirely.

Jeremy