Lawrence D'Oliveiro wrote:
In message <[EMAIL PROTECTED]>, Steve
Holden wrote:
Lawrence D'Oliveiro wrote:
In message
<[EMAIL PROTECTED]>,
Michele Simionato wrote:
On Nov 7, 4:38 pm, Tim Golden <[EMAIL PROTECTED]> 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.
Hey, I didn't design the language, I just use it. :)
I'm with Steve. Multiple inheritance is still a "good" thing, especially for
mixin-classes. wxPython, for instance, wouldn't be nearly so flexible without it.
-Larry
--
http://mail.python.org/mailman/listinfo/python-list