Cameron Simpson wrote: > On 21Jan2009 14:02, Tres Seaver <tsea...@palladion.com> wrote: > | Vitor Bosshard wrote: > | > BTW, there is already an "until" keyword in python, it's called "while > not" ;) > | > | 'until' is used at least in some languages (Pascal, Modula*, maybe Ada?) > | for a "terminate at bottom" loop (one guaranteed to run at least once): > | in such cases, the predicate has the negative sense. > > This is a particular flavour of "do ... while" which just happens > to read a little better in English. It does sometimes bother me that > Python doesn't have do...while when I find my self replicating the loop > bottom above the loop.
Adding a do-while construct to Python has already been proposed: http://www.python.org/dev/peps/pep-0315/ It was merely deferred due to only garnering lukewarm support and lack of a reference implementation rather than actually being rejected: http://mail.python.org/pipermail/python-dev/2006-February/060718.html Cheers, Nick. -- Nick Coghlan | ncogh...@gmail.com | Brisbane, Australia --------------------------------------------------------------- _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com