What is super in python.

43 views
Skip to first unread message

Akshay Mukadam

unread,
Jul 22, 2014, 6:52:15 AM7/22/14
to django...@googlegroups.com
What is super in python django I referred http://stackoverflow.com/questions/576169/understanding-python-super-and-init-methods link I was unable to get it can anyone please tell me in simple words what does it mean

Tom Evans

unread,
Jul 22, 2014, 8:29:38 AM7/22/14
to django...@googlegroups.com
super() is used to call a method on a parent class using only
references to the derived class.

It is commonly used in derived classes constructor to call their
super-class's constructor.

Cheers

Tom

Wellington Cordeiro

unread,
Jul 22, 2014, 11:42:32 AM7/22/14
to django...@googlegroups.com
Tom Evans gave you a good answer but if you have questions that are general to the language I suggest you ask it on the language's group. https://groups.google.com/forum/#!forum/comp.lang.python
Reply all
Reply to author
Forward
0 new messages