Ask coding questions

← Back to all posts
Super function in python
Jakman (449)

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

xolyon (346)

@malvoliothegood is super() basically class inheritance?

malvoliothegood (871)

@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.

xolyon (346)

@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