Multiple dispatch again

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


"Samuele Pedroni" <pedronis at bluewin.ch> wrote previously:
|it's from his Perl6 RFC inspired by his previous work
|http://dev.perl.org/rfc/256.html

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 gnosis.cx]~~~~~~~~~~~~~~~~~~~~~  _/_/
  _/_/  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