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.
Site içinde arama yapın
Chart
Kategoriler
- Arts
- Business
- Computers
- Oyunlar
- Health
- Home
- Kids and Teens
- News
- Recreation
- Reference
- Regional
- Science
- Shopping
- Society
- Sports
- Бизнес
- Дом
- Досуг
- Здоровье
- Игры
- Искусство
- Источники информации
- Компьютеры
- Наука
- Новости и СМИ
- Общество
- Покупки
- Спорт
- Страны и регионы
- World
Read More
Social work
Social work with the elderly in the UNITED STATES
In the United States, the implementation of...
8 money tips for freelance workers
If you’ve traded in your cubicle to become a freelancer, you’re not alone. Fifteen...
How to play airsoft
Everyone is welcome. In this article, we'll figure out how to create a new airsoft team and what...
The Wizard of Oz. (1939)
Young Dorothy Gale and her dog Toto are swept away by a tornado from their Kansas farm to the...
Computers - How they have come to be, and what they are
Computer (English computer, IPA: [kəmˈpjuː.tə(ɹ)]- "calculator", from the Latin computare - to...