timer

Paul Rudin paul.nospam at rudin.co.uk
Tue Jun 30 09:08:38 EDT 2009


superpollo <user at example.net> writes:


> so why this does not work?
>
>       1 #!/usr/bin/python
>       2
>       3 import threading
>       4
>       5 e = threading.Event()
>       6 t = threading.Timer(3.0, e.set())

The second arg needs to be a callable - maybe you meant e.set without
the brackets?




More information about the Python-list mailing list