A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/065815.html below:

do...until wisdom needed...

do...until wisdom needed... do...until wisdom needed...Ken Peek Peek at LVCM.comNOSPAM
Mon Apr 16 02:50:23 EDT 2001
Hmmm...  nice syntax, but still ambiguous ("a" may ALREADY be equal to "b"
before the loop starts, and it is not obvious that the loop executes once
anyway.)  I too share your dislike for the control structures at the end of code
blocks-- but, what to do?  (Pun intended!)


"deadmeat" <root@[127.0.0.1]> wrote in message
news:HZvC6.2488$p5.8503 at news1.rivrw1.nsw.optushome.com.au...
> > Here is my question--  If Python WERE to have a "do...until" construct,
> what
> > would be the best way to implement the syntactical rules?
>
> until a == b:
>     some
>     thing
>
> ie. the same as while, except until guarantees at least a single recursion.
> this would mean very little change to Python to implement, just a minor
> modification on the while handler.
>
> it's not as clear as do (code) until but I don't like ending code blocks
> with with control structures... esp. not in Python.
>
>
>
>



More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4