[Python-Dev] Things to Know About Super (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Wed Aug 27 09:54:47 CEST 2008
- Previous message: [Python-Dev] Things to Know About Super
- Next message: [Python-Dev] Things to Know About Super
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Phillip J. Eby wrote:
ISTR pointing out on more than one occasion that a major use case for co-operative super() is in the implementation of metaclasses. The init and new signatures are fixed, multiple inheritance is possible, and co-operativeness is a must
Do you have a real-life example of this where multiple inheritance is actually used?
A non-contrived example or two would be a good thing to have in tutorials etc. where super() is discussed. It would help to convey the kinds of situations in which use of super() is and is not appropriate.
-- Greg
- Previous message: [Python-Dev] Things to Know About Super
- Next message: [Python-Dev] Things to Know About Super
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]