__getattr__, __setattr__

Thomas Heller theller at python.net
Thu Oct 20 17:09:36 CEST 2005

Just wondering about this behaviour, why is it this way?

Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> object.__setattr__
<slot wrapper '__setattr__' of 'object' objects>
>>> object.__getattr__
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
AttributeError: type object 'object' has no attribute '__getattr__'



More information about the Python-list mailing list