Does Python have Multiple Inheritance ?
Steve Holden
steve at holdenweb.com
Fri Nov 7 18:36:37 EST 2008
Lawrence D'Oliveiro wrote:
> In message
> <90d2b348-73b4-446d-9673-3de62927d146 at d42g2000prb.googlegroups.com>,
> Michele Simionato wrote:
>
>> On Nov 7, 4:38 pm, Tim Golden <m... at timgolden.me.uk> wrote:
>>
>>> Seriously, though, although Python does indeed support multiple
>>> inheritance, I have the impression from comments over the years that it's
>>> used a lot less than in other languages where it is more of a common
>>> idiom.
>> The reason is that in Python using composition is very easy, so there
>> is little need for MI
>> (which is a Good Thing).
>
> Not to mention duck typing, which does away with the need for inheritance
> altogether.
That seems a somewhat extreme point of view.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
More information about the Python-list
mailing list