Timed events

Gerhard Häring gerhard.haering at gmx.de
Sat Feb 1 14:12:12 CET 2003

Laura Creighton wrote:
>> Hi !
>> i have a problem with 'time.sleep( )' on a NT-server.  Considere this code :
>>     for i in range(0,999999):
> Try this instead:
>       for i in xrange(0, 999999):  # xrange(999999) will work here

Or even:

    while 1:    # or while True: if you target only Python 2.2.2+

if you want a never-ending loop. I doubt you really want one, though

Favourite database:             http://www.postgresql.org/
Favourite programming language: http://www.python.org/
Combine the two:                http://pypgsql.sf.net/
Embedded database for Python:   http://pysqlite.sf.net/

More information about the Python-list mailing list