Super() function

Alan Harris-Reid aharrisreid at
Thu Mar 25 04:17:52 CET 2010


Using Python 3.1, I sometimes use the super() function to call the 
equivalent method from a parent class, for example

def mymethod(self):
    some more code...

Is there any way of writing the code so that the super() call is generic 
and automatically recognises the name of the current method (ie. 
something like super().thismethod()) or do I always have to repeat the 
method name after super()?


More information about the Python-list mailing list