Python Forum
Understanding Python super() for classes
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Understanding Python super() for classes
#1
Good day, Dear Pythonistas

Could you, please, explain in a simple way why super() is used for classes sometimes. I saw many examples dealing with single inheritance and multiple inheritances, it is explained that this approach could make the whole structure more manageable, but what are the conceptual framework and practical applications? (Is it typical for a large project or what?)
Reply
#2
Check Python’s super() considered super! by Raymond Hettinger and on youtube - https://youtu.be/EiOglTERPEo
and also https://realpython.com/python-super/
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Classes rob101 4 468 Feb-05-2024, 06:51 PM
Last Post: rob101
  super() in class akbarza 1 403 Dec-19-2023, 12:55 PM
Last Post: menator01
  Understanding venv; How do I ensure my python script uses the environment every time? Calab 1 2,160 May-10-2023, 02:13 PM
Last Post: Calab
  New to python/coding Need help on Understanding why this code isn't working. Thanks! mat3372 8 1,664 May-09-2023, 08:47 AM
Last Post: buran
  Understanding Python classes PythonNewbee 3 1,150 Nov-10-2022, 11:07 PM
Last Post: deanhystad
Sad Python classes PythonNewbee 4 995 Nov-09-2022, 01:19 PM
Last Post: deanhystad
  super multiple parallel classes catlessness 2 1,294 Jun-07-2022, 02:35 PM
Last Post: deanhystad
  I need help understanding a program structure using classes CompleteNewb 21 5,867 Feb-24-2022, 07:15 PM
Last Post: deanhystad
  Inheritance vs Instantiation for Python classes mr_byte31 7 2,789 Oct-14-2021, 12:58 PM
Last Post: mr_byte31
  Super flexibility in python, examples Kakha 10 3,764 Jan-08-2021, 12:40 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020