On Mon, 6 Oct 2008 21:13:21 +0200 "Petr Jake?" <[EMAIL PROTECTED]> wrote: > > I am not an expert, but why not to use time.sleep(5)? > > > During the 5s period my script has to do some stuff instead of sleeping. > Thats why it runs in the loop and once in 5s period it has to trigger some > other stuff(function, method, action) to do.
Then check out http://www.python.org/doc/current/library/select.html -- D'Arcy J.M. Cain <[EMAIL PROTECTED]> | Democracy is three wolves http://www.druid.net/darcy/ | and a sheep voting on +1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner. -- http://mail.python.org/mailman/listinfo/python-list