[Python-ideas] [Python-Dev] python and super

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Apr 16 02:12:21 CEST 2011


Mike Graham wrote:

> I feel like you're implying this would be fixed by having
> UncooperativeBase call super().method(), but this would not make
> working code. _It's the base class's responsibility *not* to call
> super._

I would say it's also the responsibility of every class
taking part in the chain to inherit directly or indirectly
from the common base class that defines the terminating
method, to ensure that it appears last in the mro.

-- 
Greg



More information about the Python-ideas mailing list