class MyList(list): Is this ok?

Martin Bless m.bless at gmx.de
Wed Jul 7 17:09:30 CEST 2004


Duncan Booth <duncan.booth at suttoncourtenay.org.uk> wrote in
<Xns951E907C66ED0duncanrcpcouk at 127.0.0.1>:
>In general:
>
>    self.method(parms)
>
>can be regarded as shorthand for:
>
>   type(self).method(self, parms)

Aah, that's it. Thanks.

>The other way is to use the super builtin:
>
>   super(ColumnCollector, self).append(self, v)

Ok, I'll have to learn more about super().

Thank you,

Martin




More information about the Python-list mailing list