Re: How to order base classes?

2010-12-23 Thread Tim Roberts
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

Re: How to order base classes?

2010-12-23 Thread kj
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

Re: How to order base classes?

2010-12-23 Thread Steven D'Aprano
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

How to order base classes?

2010-12-23 Thread kj
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