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.
Поиск
Chart
Категории
- Arts
- Business
- Computers
- Игры
- Health
- Главная
- Kids and Teens
- News
- Recreation
- Reference
- Regional
- Science
- Shopping
- Society
- Sports
- Бизнес
- Дом
- Досуг
- Здоровье
- Игры
- Искусство
- Источники информации
- Компьютеры
- Наука
- Новости и СМИ
- Общество
- Покупки
- Спорт
- Страны и регионы
- World
Больше
Children and the computer: harm and benefit
A computer for the little ones
Preschoolers, of course, do not need their own computer. For...
Python ValueError
Python ValueError is raised when a function receives an argument of the correct type, but an...
Dyslexia: Diagnosis
Dyslexia is a heterogeneous, dimensional learning disorder that impairs accurate and fluent word...
Touching the Void (2003)
The true story of two climbers and their perilous journey up the west face of Siula Grande in the...
Fungi
A fungus (pl: fungi or funguses) is any member of the group of eukaryotic organisms that includes...