[Python-Dev] Type/class

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