how to call a function for evry 10 secs

anand jeyahar anand.ibmgsi at
Sat Jul 2 09:49:50 CEST 2011

>  > Hi All,
> > I need to call a function for evry 10 secs
> > how can i achieve this in python
> import time
> while True:
>    time.sleep(10)
>    function()

Please don't reinvent the wheel...
Use the python apscheduler module.

Thanks and Regards,
Anand Jeyahar<>
The man who is really serious,
with the urge to find out what truth is,
has no style at all. He lives only in what is.
                 ~Bruce Lee

Love is a trade with lousy accounting policies.
                ~Aang Jie<>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list