[Python-3000] Fixing super anyone? (original) (raw)
Michele Cella michele.cella at gmail.com
Mon Apr 23 08:48:28 CEST 2007
- Previous message: [Python-3000] Fixing super anyone?
- Next message: [Python-3000] Fixing super anyone?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Greg Ewing wrote:
Michele Cella wrote:
Personally, I really like this syntax:
res = super currentmethod(arg, arg) Why? because it's very consistent (pythonic?) with the way I'm used to use any other keyword. But it's inconsistent with the way every other method is called.
Yeah, you're absolutely right. :-)
Have you seen my second proposal?
Calling a method:
self.method(arg)
Calling a super method:
super self.method(arg)
That's consistent with: * the way you call any other method * the way you use any other keyword
Thanks for the attention.
Ciao Michele
- Previous message: [Python-3000] Fixing super anyone?
- Next message: [Python-3000] Fixing super anyone?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]