timer freezes system

R

Riad Djemili

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,829
Latest member
KimberAlli

Latest Threads

Top