> I was bitten by the urge to play with this today, and modified my
> previous "self" hack to handle "super" also, so that the following
> code works:
>
> class D (C):
> @method
> def sum(n):
> return super.sum(n * 2) - self.base
>
> Posted as "evil2.py" here:
>
On 4 Dec 2006, at 3:13, Nick Coghlan wrote:
> Ben Wing wrote:
>> i don't like the current super() at all. having to type super(Foo,
>> self).__init__(...) is messy, hard to remember, and error-prone.
>
> Yup.
>
>> it
>> also introduces an unfortunate dependency in that the name of the
>> clas
Ben Wing wrote:
> i don't like the current super() at all. having to type super(Foo,
> self).__init__(...) is messy, hard to remember, and error-prone.
Yup.
> it
> also introduces an unfortunate dependency in that the name of the class
> (Foo) has to be hard-coded in the call, and if you cha