[Python-3000] PEP 3124 - Overloading, Generic Functions, Interfaces, etc. (original) (raw)
Christian Tanzer tanzer at swing.co.at
Tue May 15 14:53:51 CEST 2007
- Previous message: [Python-3000] PEP 3124 - Overloading, Generic Functions, Interfaces, etc.
- Next message: [Python-3000] PEP 3124 - Overloading, Generic Functions, Interfaces, etc.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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/
- Previous message: [Python-3000] PEP 3124 - Overloading, Generic Functions, Interfaces, etc.
- Next message: [Python-3000] PEP 3124 - Overloading, Generic Functions, Interfaces, etc.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]