Michele Cella wrote:
> 
> Personally, I really like this syntax:
> 
> res = super currentmethod(arg, arg)
> 

Sorry for replying to myself, what about:

        def mymethod(self, arg):
                super self.mymethod(arg)

this syntax resembles very closely the way you actually invoke a *self* 
method, the only difference is that the super keyword clearly denotes 
that you want to call the super implementation of that method (very much 
like the global keyword).

So you get something like:

        class Example():

                def example(self):
                        # do it

                def mymethod(self, arg):
                        super self.mymethod(arg)
                        self.example()
                
that's all very consistent and explicit IMHO.

Ciao
Michele

_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to