Re: [Python-Dev] Problem with super() usage

2006-07-18 Thread Guido van Rossum
On 7/18/06, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > I think this was Greg's point. Talking about C++ and super() is > nonsensical. If you're talking pure C++, yes. But I was talking about programming system built on top of C++ implementing cooperating multitasking. As I am fond of repea

Re: [Python-Dev] Problem with super() usage

2006-07-18 Thread Guido van Rossum
On 7/18/06, Greg Ewing <[EMAIL PROTECTED]> wrote: > Guido van Rossum wrote: > > In the world where cooperative multiple inheritance > > originated (C++), this would be a static error. > > I wasn't aware that C++ had anything resembling super(). > Is it a recent addition to the language? I don't kn

Re: [Python-Dev] Problem with super() usage

2006-07-18 Thread Willem Broekema
On 7/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > C++ originally specified multiple inheritance, but it wasn't "cooperative" in > the sense that super is. In Lisp, though, where cooperative method dispatch > originated, call-next-method does basically the same thing in the case where > th

Re: [Python-Dev] Problem with super() usage

2006-07-18 Thread glyph
On Tue, 18 Jul 2006 09:24:57 -0400, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: >On Tue, 18 Jul 2006 09:10:11 -0400, Scott Dial <[EMAIL PROTECTED]> wrote: >>Greg Ewing wrote: >>> Guido van Rossum wrote: In the world where cooperative multiple inheritance originated (C++), this would

Re: [Python-Dev] Problem with super() usage

2006-07-18 Thread Jean-Paul Calderone
On Tue, 18 Jul 2006 09:10:11 -0400, Scott Dial <[EMAIL PROTECTED]> wrote: >Greg Ewing wrote: >> Guido van Rossum wrote: >>> In the world where cooperative multiple inheritance >>> originated (C++), this would be a static error. >> >> I wasn't aware that C++ had anything resembling super(). >> Is it

Re: [Python-Dev] Problem with super() usage

2006-07-18 Thread Scott Dial
Greg Ewing wrote: > Guido van Rossum wrote: >> In the world where cooperative multiple inheritance >> originated (C++), this would be a static error. > > I wasn't aware that C++ had anything resembling super(). > Is it a recent addition to the language? > It is much more explicit, but you call t

Re: [Python-Dev] Problem with super() usage

2006-07-18 Thread Greg Ewing
Guido van Rossum wrote: > In the world where cooperative multiple inheritance > originated (C++), this would be a static error. I wasn't aware that C++ had anything resembling super(). Is it a recent addition to the language? -- Greg ___ Python-Dev mail

Re: [Python-Dev] Problem with super() usage

2006-07-17 Thread Guido van Rossum
On 7/16/06, Greg Ewing <[EMAIL PROTECTED]> wrote: > For about the third time in my life, I thought I might > have found a use for cooperative super calls, but I've > run into another problem with the concept. > > Consider: > > class A(object): >def m(self): > print "A.m" > > class B(ob

[Python-Dev] Problem with super() usage

2006-07-16 Thread Greg Ewing
For about the third time in my life, I thought I might have found a use for cooperative super calls, but I've run into another problem with the concept. Consider: class A(object): def m(self): print "A.m" class B(object): def m(self): print "B.m" super(B, self).m() clas