why no "do : until"?
Tim Gahnström
com at gahnstrom.se
Sat Dec 30 16:36:14 EST 2000
>The only way to acieve this exact behavior with is while is like this
uops I got a nose punc for this :-)
>a=1
>while a=1 or (T >=25)
> a=0
> R=Themistor.ReadResistance()
> T=R_to_Temperature(R)
First of all, this doesn't produce the exact same behavior unless python
uses lazy evaluation (does it?)
Two this is ofcourse not the ONLY way to acive the behavior.
Björn Peterssen said another one in the first message.
I have just benn tought to not use goto and I counted break as a nobler art
of goto :-)
Tim
More information about the Python-list
mailing list