[Tutor] subclass not inheriting attributes?

Walter Prins wprins at gmail.com
Tue Jan 4 02:47:36 CET 2011


On 4 January 2011 01:16, Vern Ceder <vceder at gmail.com> wrote:

> I believe you need to pass the object both to super() and to the method
> itself, as in:
>
> super(parent, self).__init__(self, *args, **kwords)
>
> See the example at
> http://docs.python.org/library/functions.html?highlight=super#super
>
> HTH,
>
> Vern
>
>
I've already pointed out that you're supposed to tell super() the *current*
class and Alex has already indicated that it now works for him?  Is there a
problem with everyone on the mailing list receving posts timeously?

Walter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110104/275c3b77/attachment.html>


More information about the Tutor mailing list