[Python-3000] PEP 3124 - Overloading, Generic Functions, Interfaces, etc.

Christian Tanzer tanzer at swing.co.at
Tue May 15 14:53:51 CEST 2007


Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:

> Phillip J. Eby wrote:
> > Imagine what would happen if the results of
> > calling super() depended on what order your modules had been imported in!
>
> Actually, something like this does happen with super.

No, it doesn't.

The order of super-calls is always well-defined (and the only sane
one)!

> You can't be sure which method super() will call when
> you write it, because it depends on what other classes
> people inherit along with your class, and what order
> they're in.

This is true but doesn't matter (which is the beauty of super).

-- 
Christian Tanzer                                    http://www.c-tanzer.at/



More information about the Python-3000 mailing list