timer freezes system

Riad Djemili nospam at nospam.net
Tue Oct 7 20:40:19 EDT 2003


Hi there,

when executing the standard python example for Timer my python shell 
freezes after giving out 'hello' and has to be killed.

What am I doing wrong!?

--code--

import threading

def hello():
     print "hello, world"

t = threading.Timer(30.0, hello)
t.start() # after 30 seconds, "hello, world" will be printed

--code--


I'm on a WinXP System

Regards,
Riad





More information about the Python-list mailing list