Re: My fight with classes :)

2008-06-13 Thread Bruno Desthuilliers
TheSaint a écrit : On 17:47, giovedì 12 giugno 2008 Bruno Desthuilliers wrote: For multiple functions, use classes. Well... Closures are poor men's objects, or so they say (or is that the other way round ?-). Well, I'd like to know what could be the reason to design a single-call class inste

Re: My fight with classes :)

2008-06-12 Thread TheSaint
On 17:47, giovedì 12 giugno 2008 Bruno Desthuilliers wrote: >>> For multiple functions, use classes. > > Well... Closures are poor men's objects, or so they say (or is that the > other way round ?-). Well, I'd like to know what could be the reason to design a single-call class instead of a simil

Re: My fight with classes :)

2008-06-12 Thread Bruno Desthuilliers
TheSaint a écrit : On 04:51, giovedì 12 giugno 2008 Terry Reedy wrote: First of all a big thank you, all. def makeappender(): data = ['',''] def appender(val): return appender I'll give it a try. I just doubting if the data will be shared outside the function. Each time makeappe

Re: My fight with classes :)

2008-06-12 Thread TheSaint
On 04:51, giovedì 12 giugno 2008 Terry Reedy wrote: First of all a big thank you, all. > def makeappender(): > data = ['',''] > def appender(val): > > return appender I'll give it a try. I just doubting if the data will be shared outside the function. Actually, my practice goes to send all vari

Re: My fight with classes :)

2008-06-11 Thread Terry Reedy
"TheSaint" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Hi, | I'm very new with classes. I still reading something around ;) | | I got started to try a concatenation of 2 type of string, which have a | particular property to start with A or D. | | My class here: |""" Small cl

Re: My fight with classes :)

2008-06-11 Thread Peter Pearson
On Wed, 11 Jun 2008 22:16:56 +0800, TheSaint <[EMAIL PROTECTED]> wrote: > Hi, > I'm very new with classes. I still reading something around ;) > > I got started to try a concatenation of 2 type of string, which have a > particular property to start with A or D. > > My class here: > """ Small cl

My fight with classes :)

2008-06-11 Thread TheSaint
Hi, I'm very new with classes. I still reading something around ;) I got started to try a concatenation of 2 type of string, which have a particular property to start with A or D. My class here: """ Small class to join some strings according to the leading first letter""" def __init