newbie: class and __dict__ variable.

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Mon Sep 20 04:50:46 EDT 2010


On Mon, 20 Sep 2010 09:27:25 +0200, Bruno Desthuilliers wrote:

>> If the class has a .__setattr__ method, the first bypasses that method,
> 
> It also bypasses object.__setattribute__ and - as a consequence - any
> binding descriptor by the same name as the attribute being set.

__setattribute__ ?


>>> object.__setattribute__
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: type object 'object' has no attribute '__setattribute__'



-- 
Steven



More information about the Python-list mailing list