News for hackers. Stuff that matters.
Re:Python's super considered harmful by rhettinger on Tuesday December 28, 2010 @05:44AM (#2045143)
How Python's super() actually gets used:

http://www.google.com/codesearch?as_q=super\(&as_lang=py...

Re:Python's super considered harmful by limmeau on Tuesday December 28, 2010 @07:20AM (#2045276)
And, while we're at it, multiple inheritance:

http://www.google.com/codesearch?hl=de&lr=&q=class\s...

Re:Python's super considered harmful by ra on Tuesday December 28, 2010 @07:21AM (#2045277)
Indeed. super() is a hook / callback which permits a library to be used in ways not envisaged by the original author.
Re:Python's super considered harmful by masklinn on Tuesday December 28, 2010 @08:00AM (#2045340)
This definitely is not correct. Though there are many who argue that classes should be designed for inheritance and that classes which are not should not be inheritable (I'll leave that to your own judgement), when classes are designed for inheritance you do need a way to call your superclass.

And in Python's case, due to MI, you need a way to call your superclasses in a consistent and sensible order even though these superclasses are unaware of one another (one might be "normally" inheritable while the other is a mixin-type superclass for instance, or used to inject metaclass-based behaviors). This is, as far as I know, a perfectly valid use case and one which requires a `super`-type utility (though Python's own `super` isn't quite a flawless implementation of this).