Tuesday, July 22, 2014

Re: What is super in python.

On Tue, Jul 22, 2014 at 10:52 AM, Akshay Mukadam
<mukadam.akshay@gmail.com> wrote:
> 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

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

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFHbX1%2BrDq%2BFafKNmNs3KiwWGjKm3DXnao1Y54LrPF9JPuLW3w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment