> how can I break a loop after a certain amount of time has passed? > with timeout of 60sec:
I assume you want the loop to do somerthing until the timeout? If so then the logic is: timeout = now() + 60 while now() < timeout: do something. Using the time module you can easily calculate timeout and now. It gets trickier with small values - if you wanted 60ms say, but at the seconds level it works ok. HTH, Alan G Author of the learn to program web tutor http://www.freenetpages.co.uk/hp/alan.gauld _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor