supermethod shortcut

Sean Ross sross at connectmail.carleton.ca
Wed May 26 09:37:52 EDT 2004


"David Fraser" <davidf at sjsoft.com> wrote in message
news:c91uk9$krq$1 at ctb-nnrp2.saix.net...
> Hi
>
> I was recently thinking about the awkwardness I find in using the super
> method to call a superclass's function.
>
[snip]
>
> The whole super(Y, self).some_method seems an awkward way to say "call
> the superclass's version of this function".
[snip]


You may find the following recipe interesting:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/284528






More information about the Python-list mailing list