sleep()ing

Gordon McMillan gmcm at hypernet.com
Fri Jun 18 00:44:36 CEST 1999


Angus MacKay writes:

> is there anyway to sleep in a python program asside from:
> import os
> os.system("sleep 1")
> 
> or
> 
> import threading
> threading._sleep(1)
> 
> I mean it is part of unistd.h so you would think that it would
> appear in os or posix or somewhere.

Would time.sleep do? (There is a low level index to the library docs, 
you know).

- Gordon




More information about the Python-list mailing list