do...until wisdom needed...
deadmeat
root at [127.0.0.1]
Mon Apr 16 02:06:31 EDT 2001
> 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