Override method name and original method access

Donn Ingle donn.ingle at gmail.com
Mon Nov 12 23:45:31 EST 2007


> You need to be a new-style class (that is, you must inherit from
> object) for super() to work. 
Problem is that my classes inherit already, from others I wrote. So, should
I explicitly put (object) into the ones at the top?

> Other than that, you are using it 
> correctly here.
Well, even with <One.add(stuff)> it seems to be calling to local overridden
method. In a bit of a hurry, so can't test again right now.


/d




More information about the Python-list mailing list