Do deep inheritance trees degrade efficiency?

Anthra Norell anthra.norell at
Wed Mar 18 14:09:00 CET 2009

Would anyone who knows the inner workings volunteer to clarify whether 
or not every additional derivation of a class hierarchy adds an 
indirection to the base class's method calls and attribute read-writes. 
In C++, I suppose, a three-level inheritance would resolve into 
something like *(*(*(*(base_class_method ())))).


More information about the Python-list mailing list