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.
Pesquisar
Chart
Categorias
- Arts
- Business
- Computers
- Jogos
- Health
- Início
- Kids and Teens
- News
- Recreation
- Reference
- Regional
- Science
- Shopping
- Society
- Sports
- Бизнес
- Дом
- Досуг
- Здоровье
- Игры
- Искусство
- Источники информации
- Компьютеры
- Наука
- Новости и СМИ
- Общество
- Покупки
- Спорт
- Страны и регионы
- World
Leia Mais
Best Computers of 2022
The computer has long been an integral part of the life of modern man. These devices vary in...
Beyond GDP: other ways to measure the economy
Key points
Gross national product, or GNP, includes what is produced...
Navigating Higher Education: A Guide to College and University
Navigating Higher Education: A Guide to College and University
In the journey of personal and...
Spider-Man: Into the Spider-Verse. (2018)
Teen Miles Morales becomes the Spider-Man of his universe, and must join with five spider-powered...
Sisters on Track (2021)
A coming of age story about hope, belonging, and the metaphorical and literal sisterhood of young...