Re: [Python-Dev] features i'd like [Python 3000] ... #3: fix super()

2007-01-06 Thread Eduardo \"EdCrypt\" O. Padoan
> 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: >

Re: [Python-Dev] features i'd like [Python 3000] ... #3: fix super()

2007-01-06 Thread Robey Pointer
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

Re: [Python-Dev] features i'd like [Python 3000] ... #3: fix super()

2006-12-04 Thread Nick Coghlan
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