[Python-3000] Removing 'self' from method definitions

Guido van Rossum guido at python.org
Sun Apr 16 22:10:34 CEST 2006


On 4/16/06, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Ian Bicking wrote:
>
> > Class.some_method(self, blah) seems like a corner case.  How often do
> > you do that?
>
> Very frequently, when calling inherited __init__ methods.
>
> > If it is calling a superclass method, then super(Class,
> > self).some_method() should be used
>
> That's a matter of opinion. In the case of __init__
> methods, most of the time it simply doesn't work,
> because different __init__ methods rarely have the
> same signature.

How does that prevent you from using super()? (Hint: it doesn't. :-)

(Not that I disagree strongly with your sentiment against super.)

--
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list