Re: [Python-Dev] Problems with the new super()
At 04:38 PM 5/1/2008 -0300, Facundo Batista wrote:
Has super() proved more useful than harmful?
For me, yes. I use it all the time. The only time I use explicit-target upcalls is in __init__ methods, and there usually only to skip a subclass' init or to explicitly manage a tricky bit of multiple inheritance. (Note, by the way, that you cannot safely write an upcall in a mixin class without super, so it can't safely be done away with, anyway.)
Phillip J. Eby wrote:
(Note, by the way, that you cannot safely write an upcall in a mixin class without super, so it can't safely be done away with, anyway.)
It seems to me you can't safely write one in a mixin class *with* super either. I know that's what it's supposed to be for, but I can't see it working properly except under very special circumstances -- so special that they have never turned up in any code I've written so far. -- Greg
participants (2)
-
Greg Ewing
-
Phillip J. Eby