On a l'habitude d'utiliser notre grande cocotte pour le bœuf bourguignon ou pour la ratatouille, mais vous saviez que l'on peut aussi s'en servir pour réaliser un pain super facilement? Une recette ...
MSN: Rôtis de porc en cocotte : 26 recettes faciles et fondantes
MSN: Recettes en cocotte : 10 plats mijotés à partager en famille
Envie d’un plat mijoté plein de saveurs et ultra réconfortant ? La cocotte est votre meilleure alliée ! Découvrez nos recettes de viandes en cuisson longue faciles à préparer et parfaites pour régaler ...
super() is a special use of the super keyword where you call a parameterless parent constructor. In general, the super keyword can be used to call overridden methods, access hidden fields or invoke a superclass's constructor.
The benefits of super() in single-inheritance are minimal -- mostly, you don't have to hard-code the name of the base class into every method that uses its parent methods. However, it's almost impossible to use multiple-inheritance without super(). This includes common idioms like mixins, interfaces, abstract classes, etc. This extends to code that later extends yours. If somebody later wanted ...
In fact, multiple inheritance is the only case where super() is of any use. I would not recommend using it with classes using linear inheritance, where it's just useless overhead.
Just a heads up... with Python 2.7, and I believe ever since super() was introduced in version 2.2, you can only call super() if one of the parents inherit from a class that eventually inherits object (new-style classes).
Thirdly, when you call super() you do not need to specify what the super is, as that is inherent in the class definition for Child. Below is a fixed version of your code which should perform as you expect.