use of super

H

harryos

hi
I was going thru the weblog appln in practical django book by
bennet .I came across this

class Entry(Model):
def save(self):
dosomething()
super(Entry,self).save()

I couldn't make out why Entry and self are passed as arguments to super
().Can someone please explain?
thanks
harry
 
S

Simon Brunning

2010/1/19 harryos said:
I was going thru the weblog appln in practical django book by
bennet .I came across this

class Entry(Model):
       def save(self):
               dosomething()
               super(Entry,self).save()

I couldn't make out why Entry and self are passed as arguments to super
().Can someone please explain?

Does <http://docs.python.org/library/functions.html#super> make
anything clearer?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,177
Messages
2,570,953
Members
47,507
Latest member
codeguru31

Latest Threads

Top