Skip to content
← Back to Community
Super function in python
Profile icon
Jakman

I dont know what the super function in python does. Can someone clarify it for me?

Voters
Profile icon
WilliamAlander
Profile icon
Jakman
Comments
hotnewtop
Profile icon
xolyon

@malvoliothegood is super() basically class inheritance?

Profile icon
[deleted]

@xolyon I am not sure that you can say that it is "class inheritance", but yes I think it can be used by sub classes to reference classes further up the inheritance chain.

Profile icon
xolyon

@malvoliothegood man I always do things and never realise 'wow it's got a name' lol and realise it's a common thing to do