Re: Partial Function Application and implicit self problem

2008-03-27 Thread castironpi
On Mar 27, 6:05 am, Bruno Desthuilliers wrote: > Gabriel Rossetti a écrit : > > > > > > > Bruno Desthuilliers wrote: > >> Gabriel Rossetti a écrit : > (snip) > >>>   registerServiceAtomic = partial(__registerService, True) > >>> registerServiceNonAtomic = partial(__registerService, False) > > >>>

Re: Partial Function Application and implicit self problem

2008-03-27 Thread Bruno Desthuilliers
Gabriel Rossetti a écrit : > Bruno Desthuilliers wrote: >> Gabriel Rossetti a écrit : (snip) >>> registerServiceAtomic = partial(__registerService, True) >>> registerServiceNonAtomic = partial(__registerService, False) >>> >>> I should pass self when applying partial, but then I can't do that >>

Re: Partial Function Application and implicit self problem

2008-03-27 Thread Gabriel Rossetti
Bruno Desthuilliers wrote: > Gabriel Rossetti a écrit : >> Hello, >> >> I am using Partial Function Application in a class and I've come up >> with a problem, when the method is called it tries to pass "self" to >> the curried/partial function, but this should be the first argument >> in reality

Re: Partial Function Application and implicit self problem

2008-03-27 Thread Diez B. Roggisch
Gabriel Rossetti wrote: > > Gabriel Rossetti wrote: >> Hello, >> >> I am using Partial Function Application in a class and I've come up with >> a problem, when the method is called it tries to pass "self" to the >> curried/partial function, but this should be the first argument in >> reality, but

Re: Partial Function Application and implicit self problem

2008-03-27 Thread Bruno Desthuilliers
Gabriel Rossetti a écrit : > > Gabriel Rossetti wrote: >> Hello, >> >> I am using Partial Function Application in a class and I've come up >> with a problem, when the method is called it tries to pass "self" to >> the curried/partial function, but this should be the first argument in >> reality

Re: Partial Function Application and implicit self problem

2008-03-27 Thread Gabriel Genellina
En Thu, 27 Mar 2008 05:40:30 -0300, Gabriel Rossetti <[EMAIL PROTECTED]> escribió: >>> if(atomic): >>># Lock the service dict and register the service, then unlock it >>>self.__mutex.lock(reg, service) >>>self.__mutex.unlock() I see that you've already solved yo

Re: Partial Function Application and implicit self problem

2008-03-27 Thread Gabriel Rossetti
Diez B. Roggisch wrote: > Gabriel Rossetti schrieb: > >> Hello, >> >> I am using Partial Function Application in a class and I've come up with >> a problem, when the method is called it tries to pass "self" to the >> curried/partial function, but this should be the first argument in >> realit

Re: Partial Function Application and implicit self problem

2008-03-27 Thread Gabriel Rossetti
Gabriel Rossetti wrote: > Hello, > > I am using Partial Function Application in a class and I've come up with > a problem, when the method is called it tries to pass "self" to the > curried/partial function, but this should be the first argument in > reality, but since the function is curried,

Re: Partial Function Application and implicit self problem

2008-03-27 Thread Diez B. Roggisch
Gabriel Rossetti schrieb: > Hello, > > I am using Partial Function Application in a class and I've come up with > a problem, when the method is called it tries to pass "self" to the > curried/partial function, but this should be the first argument in > reality, but since the function is curried

Partial Function Application and implicit self problem

2008-03-27 Thread Gabriel Rossetti
Hello, I am using Partial Function Application in a class and I've come up with a problem, when the method is called it tries to pass "self" to the curried/partial function, but this should be the first argument in reality, but since the function is curried, then the self gets passed as the se