Xavier Morel a écrit :
> Pierre Barbier de Reuille wrote:
> 
>> Well, I would even add : don't use super !
>> Just call the superclass method :
>>
>> MyClass.__init__(self)
>>
>>
>>
>> Simon Percivall a écrit :
>>
>>> Don't use self.__class__, use the name of the class.
>>>
> Bad idea if you're using new-style classes with a complex inheritance
> hierarchy and multiple inheritance.

As a reference :

http://fuhm.org/super-harmful/

I may say this is the only place I ever saw what "super" *really* is
for. The behavior is far too complex and misthought. All I can say is :
don't use it ! It solves *nothing* and creates too many bugs in the long
run.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to