[Zope-dev] __setattr__

Chris Withers chrisw@nipltd.com
Wed, 09 Aug 2000 11:39:58 +0100


Chris Withers wrote:
> def __setattr__(self,name,value):
>         self.__setitem__(self,name,value)

Erk...

first problem, why does a Zope __setattr__ take four arguments?!

DataBlob.py, line 62, in __setattr__:
> Error Type: TypeError
> Error Value: too many arguments; expected 3, got 4

Do either of __delattr__ or __getattr__ behave differently?

cheers,

Chris