[Python-Dev] python and super (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Fri Apr 15 12:21:03 CEST 2011
- Previous message: [Python-Dev] python and super
- Next message: [Python-Dev] python and super
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
R. David Murray wrote:
Why not? It seems more useful than using it for chaining, especially given the compiler hack in Python3.
Because it's prone to doing the wrong thing if the class using it is ever involved in multiple inheritance. If you're expecting the call to go to a particular class, it's safer to explicitly name that class.
-- Greg
- Previous message: [Python-Dev] python and super
- Next message: [Python-Dev] python and super
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]