A keyword used in instance methods to refer to the object on which they are working.


Super is a keyword or function used to access/invoke members and constructors of a superclass


Quality Example
X better then

"I think a.__init__ self x is better then super .__init__ x because it supports multiple inheritance and i didn t find a way to do it with super"

from question "Why use super() instead of __init__()?"

.__str__ better

"Also as stated by martijn pieters using super super .__str__ is better than doing it the way i did deck.__str__ self"

from question "Dot notation in Python. Should method come before or after the object?"

Back to Home
Data comes from Stack Exchange with CC-BY-SA-3.0