threading.Timer newbie question

berklee just berklee (@) berkleehotmail.com
Tue Oct 14 12:42:35 EDT 2003


When you call a timer, like in the documentation:
def hello():
    print "hello, world"

t = Timer(30.0, hello)
t.start() # after 30 seconds, "hello, world" will be printed
Does the thread get destroyed after the task is done? I mean, if I set up an
ongoing monitor and use timers to watch over jobs, do I have to worry about
thread management?






More information about the Python-list mailing list