using super

Jean-Michel Pichavant jeanmichel at sequans.com
Tue Jan 19 07:33:54 EST 2010


Gabriel Genellina wrote:
>> I see.
>> Then is there a reason why
>>   return super(Subclass, self).parrot()
>> would be prefered over the "classic"
>>   return Base.parrot(self)
>> ?
>> Or is it just a matter of preference ?
>
> For a longer explanation, see:
>
> James Knight: Python's Super Considered Harmful
> http://fuhm.net/super-harmful/
>
> Michele Simionato: Things to Know About Python Super
> http://www.artima.com/weblogs/viewpost.jsp?thread=236275
> http://www.artima.com/weblogs/viewpost.jsp?thread=236278
> http://www.artima.com/weblogs/viewpost.jsp?thread=237121
>

Thanks to all who replied to this thread.
I didn't remember why I didn't want to dive into super in the first 
place, now I remember :o)

I'm sure about one thing about super: it has a misleading name.

JM



More information about the Python-list mailing list