dynamic inheritance
alf
ask at me
Tue Jun 20 20:13:13 EDT 2006
bruno at modulix wrote:
>
> *But* you'd probably better tell us about the problem you're trying to
> solve. Since in Python, inheritance is mostly about implementation (ie:
> not needed for subtyping), your problem would probably be best solved
> with composition/delegation, for which Python offers a good support:
>
I did not think about any particular problem, just thought it would be
cool to abstract out the base class. In fact you can do that in C++ (to
some extend) using templates and parameterizing the base class.
regards,
a.
More information about the Python-list
mailing list