kj wrote:
>
>Suppose that I want to write a subclass C of base classes A and B.
>What considerations should go into choosing the ordering of A and
>B in C's base class list?
>...
>...it is difficult for me to see a strong compelling reason for picking
>an ordering over another. But may be just ig
In <4d14209d$0$3$c3e8da3$54964...@news.astraweb.com> Steven D'Aprano
writes:
>The question you ask can only be answered in reference to a specific
>class with specific methods. There is no general principle, it depends
>entirely on the problem being solved.
Thanks!
~kj
--
http://mail.py
On Fri, 24 Dec 2010 03:36:28 +, kj wrote:
> How should one go about deciding the ordering of base classes?
There is no general way for doing so. You need to consider the actual
functionality of the methods involved. Consider a method spam() of class
C that inherits from both A and B. To be
Suppose that I want to write a subclass C of base classes A and B.
What considerations should go into choosing the ordering of A and
B in C's base class list?
Since any order one chooses can be overridden on a per-method basis,
by assigning the desired parent's method to the appropriate class
a