On Sep 19, 2007, at 6:52 AM, Michele Simionato wrote:

> Well, I am personally *against* multiple inheritance (i.e. IMO it
> gives more troubles than advantages)

        For the sorts of examples that have been used in this thread, it  
isn't MI that's problematic; it's the poor quality of the design.

        Mixing two complete classes to create a multiply-inherited class is  
almost always the sign of poor design. OTOH, mixin-style classes are  
a wonderful way to ensure consistency across several different  
classes that all need a common behavior added to them. We use mixins  
extensively throughout Dabo, and they allow us to give several  
classes the desired behaviors, while only having one mixin class to  
maintain.

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to