No Do while/repeat until looping construct in python?

Colin Brown cbrown at metservice.com
Wed Mar 12 19:25:31 EST 2003


Hi Lars

...
> Why is there no do-while looping construct in Python?
> It seems to me that such a feature is very useful. Consider the
> following pseduocode:
>
> <code>
> while i<j:
> <code>
>
...

Others have explained the Python way to do this, fine.

I think this points out deficiencies of the documentation.

The repeat .. until construct is familiar to those of us that have come
from other languages and it would not hurt for the docs to show the
standard Python idiom. Also, it would be helpful for the docs to come
with built-in search capability.

Colin Brown
PyNZ







More information about the Python-list mailing list