Builtn super() function. How to use it with multiple inheritance? And why should I use it at all?

Gregory Ewing greg.ewing at canterbury.ac.nz
Sat Jul 24 21:58:00 EDT 2010


Lacrima wrote:

> But what if SuperClass1 is from third party library?

If it hasn't been designed for super(), then you
can't use super() with it.

super() only works when *every* class in the
hierarchy has been designed with it in mind.

-- 
Greg



More information about the Python-list mailing list