Why we will use obj$func() often
Greg Ewing
greg at cosc.canterbury.ac.nz
Thu Apr 22 22:39:19 EDT 2004
Mark Hahn wrote:
> Mike C. Fletcher wrote:
>> By the way, the modern Python idiom is:
>>
>> super( klass2, self ).func( )
>
> You're kidding. That seems like a big leap backwards in friendliness.
Don't worry, the traditional form of super call in Python
isn't going away any time soon. It's not replaced by this;
they do different things.
The new form is occasionally needed, but not very often.
I haven't found a use for it myself yet. (I *thought* I
had found one the other day, but it turned out I hadn't.)
--
Greg Ewing, Computer Science Dept,
University of Canterbury,
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg
More information about the Python-list
mailing list