omniORBpy / IDL mapping question...

Martin von Loewis loewis at informatik.hu-berlin.de
Tue Oct 3 10:47:42 EDT 2000


kragen at dnaco.net (Kragen Sitaker) writes:

> Someone posted a nice computed-attribute system in Python here a couple
> of weeks ago, using __getattr__ and __setattr__.  Someone should point
> Paul at it next time he complains.

The problem with __setattr__ and __getattr__ is that it does not mix
well with inheritance. I.e. there is no simple way to inherit from a
class that implements __setattr__, and implement __setattr__ yourself
as well.

Regards,
Martin




More information about the Python-list mailing list