[Tutor] Put delay in while loop

Gus Tabares gustabares at verizon.net
Mon Aug 23 21:27:11 CEST 2004

On Monday 23 August 2004 04:24 pm, Bernard Lebel wrote:
> Hello,
> How (if possible at all) do you a "delay" in a while loop? Let say for
> example I have an ever-lasting program that uses a while loop, and that
> checks for a server connection (by check the validity of a path over that
> server). In this example I would want the while loop to perform the
> verification once every minute.
> Thanks
> Bernard
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor

You might want to take a look at the sleep routine for the time module

import time


More information about the Tutor mailing list