Re: class super method

2008-04-01 Thread Ed Leafe
On Apr 1, 2008, at 6:10 PM, Steve Holden wrote: > Ed is a good enough designer to avoid the corner cases. Strangely > enough > the one place where I have ended up making significant use of super() > was in providing mixins for wxPython interface classes! Thanks much for the compliment.

Re: class super method

2008-04-01 Thread Steve Holden
Steve Holden wrote: > George Sakkis wrote: >> On Mar 31, 10:41 pm, Ed Leafe <[EMAIL PROTECTED]> wrote: [...] >> In a sentence, it's better than nothing but worse than anything. >> > So you are prepared to write off the voice of experience because some > random web pages contradict what Ed is sayin

Re: class super method

2008-04-01 Thread Steve Holden
George Sakkis wrote: > On Mar 31, 10:41 pm, Ed Leafe <[EMAIL PROTECTED]> wrote: > >> On Mar 31, 2008, at 5:58 PM, George Sakkis wrote: >> is there any tutorial for super method (when/how to use it)? or maybe someone could explain me how it works? thx >>> Super is one of the dark cor

Re: class super method

2008-04-01 Thread Ed Leafe
On Apr 1, 2008, at 12:53 PM, Michele Simionato wrote: > It is just that you did not run (yet) in a corner case of super. The > interesting question would be: did any of your users run into issues > using you library which is heavily relying on super? Especially when > composing it with their own c

Re: class super method

2008-04-01 Thread Michele Simionato
On Apr 1, 4:41 am, Ed Leafe <[EMAIL PROTECTED]> wrote: > I disagree - super is quite elegant and dependable. > > Because Python support multiple inheritance, it is difficult to > manually ensure that when augmenting a method that the correct > superclass calls are made. super() hand

Re: class super method

2008-04-01 Thread Gabriel Genellina
En Tue, 01 Apr 2008 11:21:48 -0300, Ed Leafe <[EMAIL PROTECTED]> escribió: > On Apr 1, 2008, at 8:43 AM, George Sakkis wrote: > >> Pehaps, at least as long as you make sure that all superclasses have a >> compatible signature - which in practice typically means accept >> arbitrary *args and **kwarg

Re: class super method

2008-04-01 Thread George Sakkis
On Apr 1, 10:21 am, Ed Leafe <[EMAIL PROTECTED]> wrote: > On Apr 1, 2008, at 8:43 AM, George Sakkis wrote: > > Pehaps, at least as long as you make sure that all superclasses have a > > compatible signature - which in practice typically means accept > > arbitrary *args and **kwargs in every class

Re: class super method

2008-04-01 Thread Ed Leafe
On Apr 1, 2008, at 8:43 AM, George Sakkis wrote: > Did you follow the links I gave by any chance? With all the gotchas > and rules of how to use it properly, it's far from what I would call > elegant. Please. Anything powerful can be dangerous if used indiscriminately. But in a language

Re: class super method

2008-04-01 Thread George Sakkis
On Mar 31, 10:41 pm, Ed Leafe <[EMAIL PROTECTED]> wrote: > On Mar 31, 2008, at 5:58 PM, George Sakkis wrote: > > >> is there any tutorial for super method (when/how to use it)? > > >> or maybe someone could explain me how it works? > > >> thx > > > Super is one of the dark corners of the language

Re: class super method

2008-04-01 Thread Ed Leafe
On Apr 1, 2008, at 7:23 AM, [EMAIL PROTECTED] wrote: > I've also found myself wondering: > > 1. What are the two arguments to super used for? To determine the type (1st arg) for which the superclass hierarchy is to be determined, and the instance (2nd arg) if the super object is to

Re: class super method

2008-04-01 Thread brooklineTom
On Mon, 31 Mar 2008 21:41:37 -0500, Ed Leafe <[EMAIL PROTECTED]> wrote: >On Mar 31, 2008, at 5:58 PM, George Sakkis wrote: > >>> is there any tutorial for super method (when/how to use it)? >>> >>> or maybe someone could explain me how it works? >>> >>> thx >> >> Super is one of the dark corners o

Re: class super method

2008-03-31 Thread Ed Leafe
On Mar 31, 2008, at 5:58 PM, George Sakkis wrote: >> is there any tutorial for super method (when/how to use it)? >> >> or maybe someone could explain me how it works? >> >> thx > > Super is one of the dark corners of the language [1,2]... a good rule > of thumb is to stay away from it, or at leas

Re: class super method

2008-03-31 Thread castironpi
On Mar 31, 5:58 pm, George Sakkis <[EMAIL PROTECTED]> wrote: > On Mar 31, 6:25 pm, gigs <[EMAIL PROTECTED]> wrote: > > > is there any tutorial for super method (when/how to use it)? > > > or maybe someone could explain me how it works? > > > thx > > Super is one of the dark corners of the language

Re: class super method

2008-03-31 Thread George Sakkis
On Mar 31, 6:25 pm, gigs <[EMAIL PROTECTED]> wrote: > is there any tutorial for super method (when/how to use it)? > > or maybe someone could explain me how it works? > > thx Super is one of the dark corners of the language [1,2]... a good rule of thumb is to stay away from it, or at least stick t

class super method

2008-03-31 Thread gigs
is there any tutorial for super method (when/how to use it)? or maybe someone could explain me how it works? thx -- http://mail.python.org/mailman/listinfo/python-list