"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
"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
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
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