[Tutor] What is super for?

Adam Bark adam.jtm30 at gmail.com
Mon Jun 28 18:18:11 CEST 2010


On 28 June 2010 17:15, Adam Bark <adam.jtm30 at gmail.com> wrote:

> I can't figure out how super(C, self).__init__() is any better than
> C.__init__(self), is there a preference? Does super do something special?
>
> Thanks.
>

Whoops I should really think about these things for a minute first, you
don't have to know the superclass in advance is presumably the idea?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100628/f24fe5a8/attachment.html>


More information about the Tutor mailing list