Pausing a program - poll/sleep/threads?

Simon John simoninusa2001 at yahoo.co.uk
Thu Feb 17 12:18:10 EST 2005


Damn! signal is not supported on Windows.

time.sleep() doesn't work, as I suspected::

def info(self):
   sleep(5)
   self.info()

Basically causes the function to pause, then call itself again, all in
the foreground :-(

I'm thinking some sort of thread timer is the way to go, but really
don't understand threads....




More information about the Python-list mailing list