Builtn super() function. How to use it with multiple inheritance? And why should I use it at all?
Gregory Ewing
greg.ewing at canterbury.ac.nz
Fri Jul 30 03:37:29 EDT 2010
Steven D'Aprano wrote:
> On Thu, 29 Jul 2010 19:29:24 +0200, Jean-Michel Pichavant wrote:
>
>>"mro" would have been the proper name for "super".
>
> That's your opinion. In any case, whether super() was called super() or
> mro() or aardvark() makes no difference to the functionality or whether
> it is useful.
I think the point is that the name is misleading, because it
makes it *sound* like it's going to call a method in a superclass,
when it fact it might not.
--
Greg
More information about the Python-list
mailing list