[Python-Dev] Problem with super() usage
Jean-Paul Calderone
exarkun at divmod.com
Tue Jul 18 15:24:57 CEST 2006
On Tue, 18 Jul 2006 09:10:11 -0400, Scott Dial <scott+python-dev at scottdial.com> wrote:
>Greg Ewing wrote:
>> Guido van Rossum wrote:
>>> In the world where cooperative multiple inheritance
>>> originated (C++), this would be a static error.
>>
>> I wasn't aware that C++ had anything resembling super().
>> Is it a recent addition to the language?
>>
>
>It is much more explicit, but you call the function from the
>superclass's namespace:
>
> [snip - something totally unlike super]
>
>C++ has no concept of MRO, so "super()" would be completely ambiguous.
I think this was Greg's point. Talking about C++ and super() is
nonsensical.
Jean-Paul
More information about the Python-Dev
mailing list