Using super to reuse method with inheritance in Python
Posted on 2025-06-09 in Trucs et astuces • Tagged with Python
If you use Python, you probably already know of super to call a method from the base class. You probably also know you can use a function as a method if it takes the instance as 1st parameter. What you cannot do, is call super().my_method() directly in such a …
Continue reading