Python super()

0
6K

super() lets you avoid referring to the base class explicitly, which can be nice. But the main advantage comes with multiple inheritance, where all sorts of fun stuff can happen. Note that the syntax changed in Python 3.0: you can just say super().__init__() instead of super(ChildB, self).__init__() which IMO is quite a bit nicer.

Search
Categories
Read More
Social Issues
Tenet(2020)
Armed with only one word, Tenet, and fighting for the survival of the entire world, a Protagonist...
By Leonard Pokrovski 2022-10-16 13:51:00 0 17K
Life Issues
Rear Window. (1954)
A wheelchair-bound photographer spies on his neighbors from his Greenwich Village courtyard...
By Leonard Pokrovski 2022-12-09 19:36:34 0 18K
Business
Marketing metrics: what metrics are important to track
Marketing metrics: what metrics are important to track In this article, we will talk...
By Leonard Pokrovski 2024-08-22 17:38:22 0 13K
Business
Can Indie Hacking Lead to a Sustainable Full-Time Income?
Indie hacking, the practice of building and growing small, independent businesses without the...
By Dacey Rankins 2025-02-17 16:41:42 0 4K
Business
What Are Examples of Successful Crisis Management Strategies?
Crisis management is the process of preparing for and responding to an unexpected, disruptive...
By Dacey Rankins 2025-01-27 20:33:45 0 3K
image/svg+xml


BigMoney.VIP Powered by Hosting Pokrov