'super' to only be used for diamond inheritance problems?
Colin J. Williams
cjw at sympatico.ca
Wed Nov 2 08:53:32 EST 2005
Giovanni Bajo wrote:
> Alex Hunsley wrote:
>
>
>>I've seen a few discussion about the use of 'super' in Python,
>>including the opinion that 'super' should only be used to solve
>>inheritance diamond problem. (And that a constructor that wants to
>>call the superclass methods should just call them by name and forget
>>about super.) What is people's opinion on this? Does it make any
>>sense?
>
>
>
> I personally consider super a half-failure in Python. Some of my reasons are
> cited here:
> http://fuhm.org/super-harmful/
>
It would help to have some clearer guidelines on class (type) usage. I
like James Knight's (fuhm) suggestion with respect to consistent signatures.
Colin W.
More information about the Python-list
mailing list