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

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,534
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top