wait until change

Peter Hansen peter at engcorp.com
Fri Oct 17 14:49:02 EDT 2003


Tom wrote:
> 
> thanks for your answer it works great and gives me a lot of new ideas
> that I can work with.
> That "while 1" command looks interessting. I never used while that way.
> The Library Reference doesn't explain it. But am I right if I assume
> that this is  a loop that continues forever? Despite using break of
> course. I ask, because your suggestion works, but unfortunately uses
> 100% of my CPU power. :-( Well, it works, but is there maybe another way
> to do the same without using so much of my resources? :-) That would be
> great.

Use time.sleep().

-Peter




More information about the Python-list mailing list