"Super()" confusion

Jean-Paul Calderone exarkun at divmod.com
Mon Feb 9 20:27:39 EST 2009


On Mon, 9 Feb 2009 17:19:41 -0800, Daniel Fetchinson <fetchinson at googlemail.com> wrote:
>>>Hello. I've been scouring the web looking for something to clear up a
>>>little confusion about the use of "super()" but haven't found anything
>>>that really helps. Here's my simple example:
>>>
>>> [snip]
>>>
>>>"super(Child,self).__init__(filePath)
>>>TypeError: super() argument 1 must be type, not classobj"
>>>
>>>What have I done wrong? Thanks in advance for any help.
>>
>> Consider whether you really need to use super().
>>
>> http://fuhm.net/super-harmful/
>
>Did you actually read that article, understood it, went through the
>tons of responses from python-dev team members, including Guido

Yes.  Why the knee-jerk reaction?  I simply pointed out a resource which
might be helpful to someone trying to learn to use super.

Jean-Paul



More information about the Python-list mailing list