[Python-Dev] buitlins instance have modifiable __class__?
Fri, 27 Sep 2002 22:40:30 +0200
question on bultin types (under 2.2):
>>> class ndict(dict):
... __slots__ = ()
... def __getitem__(self,k):
... print "__getitem__"
... return dict.__getitem__(self,k)
is intended to work?
it seems it does, but is that the intention?
>>> exec "print a" in d
Ok, that is the non cooperative behavior I already know about. ]