Multiple dispatch again

David Mertz mertz at
Fri Jan 3 23:28:14 CET 2003

"Samuele Pedroni" <pedronis at> wrote previously:
|it's from his Perl6 RFC inspired by his previous work

Thanks.  BTW, I have found your direction on multmethods very helpful
generally (and I see the point of super() being unsafe all by itself...
it scares me too :-)).

|> After all, plain inheritence in Python doesn't raise compilation/runtime
|> errors if the graph isn't pretty enough--as it does in some languages.
|> MRO never blows up.

|those were the days <wink>
|Python 2.3a1 (#38, Dec 31 2002, 17:53:59)
|Traceback (most recent call last):
|  File "<stdin>", line 1, in ?
|TypeError: MRO conflict among bases B, C

Hmmm... I DO NOT like that (nor did I know it).  After all:

    Python 2.2.2 (#0, Oct 24 2002, 20:53:04) [EMX GCC 2.8.1] on os2emx
    >>> class A(object): pass
    >>> class B(object): pass
    >>> class C(A,B): pass
    >>> class D(B,C): pass

Ah, that halcyon day of Oct 24, 2002...

Is there a (good) reason for this change, or could it be an artifact of
the alpha version?  I don't have 2.3 installed myself.

Yours, David...

    _/_/_/ THIS MESSAGE WAS BROUGHT TO YOU BY: Postmodern Enterprises _/_/_/
   _/_/    ~~~~~~~~~~~~~~~~~~~~[mertz at]~~~~~~~~~~~~~~~~~~~~~  _/_/
  _/_/  The opinions expressed here must be those of my employer...   _/_/
 _/_/_/_/_/_/_/_/_/_/ Surely you don't think that *I* believe them!  _/_/

More information about the Python-list mailing list