doesNotUnderstand ?
Skip Montanaro
skip at pobox.com
Wed Nov 28 11:52:38 EST 2001
Gerardo> Is there a way to intercept the activation of messages which
Gerardo> are not implemented?
Well, you will get an AttributeError exception when trying to access a
missing method or data attribute. If you want a catch-all (say, for a
proxy), add __getattr__ method to your class. Check out the "Customizing
attribute access" section of the Language Reference Manual for details:
http://www.python.org/doc/current/ref/attribute-access.html
--
Skip Montanaro (skip at pobox.com - http://www.mojam.com/)
More information about the Python-list
mailing list