'super' to only be used for diamond inheritance problems?

Giovanni Bajo noway at sorry.com
Mon Oct 31 19:28:12 EST 2005


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/

-- 
Giovanni Bajo





More information about the Python-list mailing list