do "some action" once a minute

jordan.taylor2 at gmail.com jordan.taylor2 at gmail.com
Tue May 9 16:35:34 CEST 2006


This is why your best bet is probably threads.

Class Eureka(Threading.Thread):
    def __init__(self):
        Threading.Thread.__init__(self)
        self.start()
    def run(self,sleep_time):
        while 1:
            time.sleep(sleep_time)
            print "eureka"




More information about the Python-list mailing list