do "some action" once a minute

jordan.taylor2 at gmail.com jordan.taylor2 at gmail.com
Tue May 9 10:35:34 EDT 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