Python super()

0
12Кб

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.

Поиск
Категории
Больше
Horror
Vertigo. (1958)
A former San Francisco police detective juggles wrestling with his personal demons and becoming...
От Leonard Pokrovski 2023-01-18 20:17:00 0 24Кб
Другое
David Attenborough: A Life on Our Planet. (2020)
One man has seen more of the natural world than any other. This unique feature documentary is his...
От Leonard Pokrovski 2023-07-02 19:41:03 0 37Кб
Business
How Do I Write a Sales Email?
Sales email structure, proven templates, and the best sales subject lines Writing a good sales...
От Dacey Rankins 2025-12-15 17:18:28 0 2Кб
Issues
Global problems of mankind
Progress moves humanity forward, but it also has a downside – global problems. In this...
От FWhoop Xelqua 2023-01-31 15:52:21 0 22Кб
История
Сокровища Сьерра-Мадре. The Treasure of the Sierra Madre. (1948)
В небольшом мексиканском городке Тампико знакомятся два бедняка Доббс и Кертин. От местного...
От Nikolai Pokryshkin 2023-02-19 18:34:14 0 24Кб

BigMoney.VIP Powered by Hosting Pokrov