By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,675 Members | 2,270 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,675 IT Pros & Developers. It's quick & easy.

while-loop?

P: n/a
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.
Jun 27 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.