[Python-Dev] python and super

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Apr 15 12:21:03 CEST 2011


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


More information about the Python-Dev mailing list