use of super
Simon Brunning
simon at brunningonline.net
Tue Jan 19 11:52:56 EST 2010
2010/1/19 harryos <oswald.harry at gmail.com>:
> 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?
--
Cheers,
Simon B.
More information about the Python-list
mailing list