On Tue, Oct 27, 2009 at 3:02 PM, Albert-Jan Roskam <fo...@yahoo.com> wrote:
> I thought reimplementing dict was a matter of defining a __dict__ attribute 
> in the Bar class? And isn't the normal dict inherited anyway? (through 
> __super__)
>
> Or, if one would want to disable inheritance of the normal dict, one could 
> use __slots__. Right?
>
> Or did I misinterpret the New Testament of my Python Bible?

You are confusing the __dict__ attribute of most objects with the dict
(dictionary) type. The OP is interested in subclassing the dict type.

Kent
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to