why no "do : until"?

Bjorn Pettersen pbjorn at uswest.net
Sat Dec 30 05:52:21 CET 2000


henry_crun3583 at my-deja.com wrote:

> Can someone point me at an explanation of the logic for not having
> do:
> until
>
> or explain the elegant way to achieve this in Python.
>
> eg
> do :
>     R=Themistor.ReadResistance()
>     T=R_to_Temperature(R)
>   until (T >=25)

while 1:
   R=Themistor.ReadResistance()
   T=R_to_Temperature(R)
   if T >=25: break





More information about the Python-list mailing list