while-loop?

huub v.niekerk at hccnet.nl
Wed May 28 13:56:55 EDT 2008


Hi,

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?

Thanks.



More information about the Python-list mailing list