Re: 1.5.2 and functools or similar

2008-03-09 Thread Terry Reedy
"Troels Thomsen" <"nej tak..."@bag.python.org> wrote in message news:[EMAIL PROTECTED] | def updateTimers() | for timerItm in timerTable: | ... | | |timerItm.func(*timerItm.parameters) | | Works well on python 2.5 but not on 1.5.2 (?) apply(timerItm.func, timerItm.par

Re: 1.5.2 and functools or similar

2008-03-09 Thread Paul Rubin
"Troels Thomsen" writes: > timerItm.func(*timerItm.parameters) > > Works well on python 2.5 but not on 1.5.2 (?) I think in 1.5.2 the *args notation wasn't present and you had to say: apply(timerItm.func, timerItm.parameters) -- http://mail.python.org/mailman/listinfo/python-list

Re: 1.5.2 and functools or similar

2008-03-09 Thread castironpi
On Mar 9, 4:26 pm, "Troels Thomsen" wrote: > Hello, > > I am writing a simple delayed-call mechanism , that is causing a bit of > headache. Works like this: > > myPrint(s) >   print "..." + s > > myTimer.add(myPrint , "hello" , 15) > > This means that the myprint function is called in 15 seconds w

1.5.2 and functools or similar

2008-03-09 Thread Troels Thomsen
Hello, I am writing a simple delayed-call mechanism , that is causing a bit of headache. Works like this: myPrint(s) print "..." + s myTimer.add(myPrint , "hello" , 15) This means that the myprint function is called in 15 seconds with the parameter "hello". The housekeeping of these timers