derived classes and __getattr__

Michele Simionato michele.simionato at gmail.com
Fri Sep 5 12:21:52 CEST 2008


On Sep 5, 11:46 am, Alexandru  Mosoi <brtz... at gmail.com> wrote:
> I have another small problem. now,
> d.third('blah') doesn't work because instance d doesn't have 'third'
> attribute. I was expecting derived class to inherit the metaclass as
> well, but it didn't.

Yep, it is explained here: https://www.ibm.com/developerworks/linux/library/l-pymeta2/
It would help if you told us the real problem you are trying to solve.



More information about the Python-list mailing list