Re: Pb with descriptor and super ...

2007-03-09 Thread Arnaud Delobelle
On Mar 9, 11:22 am, Erwan Adam <[EMAIL PROTECTED]> wrote: [snip] > > [EMAIL PROTECTED] /home/adam/Work/Python]> python super_from_guido.py > Using built-in super > Desc.__get__ : class_name is A, obj is <__main__.B object at 0xb7bc302c> > and typ is > Using python Super > Desc.__get__ : class_name

Re: Pb with descriptor and super ...

2007-03-09 Thread Gabriel Genellina
En Fri, 09 Mar 2007 08:22:46 -0300, Erwan Adam <[EMAIL PROTECTED]> escribió: > Thanks for your answer ... I followed the link > and tried to use the "fully functional implementation of > the super() built-in class in pure Python" given > on this page and the result is quite surprising : It appe

Re: Pb with descriptor and super ...

2007-03-09 Thread Erwan Adam
Gabriel Genellina a écrit : > En Fri, 09 Mar 2007 06:25:08 -0300, Erwan Adam <[EMAIL PROTECTED]> > escribió: > >> I have a problem with the use of descriptors >> and super. The file is : > > Descriptors for "super" behave a bit different than for classes. See > http://www.python.org/2.2/descrint

Re: Pb with descriptor and super ...

2007-03-09 Thread Erwan Adam
Erwan Adam a écrit : > Hi all, > > I have a problem with the use of descriptors > and super. The file is : > > # --- > > class Desc(object): > def __init__(self, class_name): > self.class_name = class_name > return > def __get__(self, obj, typ): > prin

Re: Pb with descriptor and super ...

2007-03-09 Thread Gabriel Genellina
En Fri, 09 Mar 2007 06:25:08 -0300, Erwan Adam <[EMAIL PROTECTED]> escribió: > I have a problem with the use of descriptors > and super. The file is : Descriptors for "super" behave a bit different than for classes. See http://www.python.org/2.2/descrintro.html#cooperation -- Gabriel Genellin