while-loop?

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Wed May 28 14:06:40 EDT 2008


On Wed, 28 May 2008 19:56:55 +0200, huub wrote:

> Being a newbie with Python, I'm trying a short program with this:
> 
>  > <..>
>> t = RoboInterface()
>  > <..>
>> while not t.Digital(1): # while endpoint is not reached
>>  15         pass
> 
> However, it always hangs on the 'while', which I can't find in the 
> tutorial at http://www.python.org/doc/. Assuming 'while' should work, 
> what's wrong with the code?

Obviously the condition is alway true.  Maybe you have to do something
within the loop so it eventually will be false at some point!?

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list