[Python-Dev] PEP 351 - do while

Andrew Koenig ark at acm.org
Sun Oct 1 18:58:41 CEST 2006

> (I don't think this has been suggested yet.)
>      while <enter_condition>, <exit_condition>:
>         <body>

This usage makes me uneasy, not the least because I don't understand why the
comma isn't creating a tuple.  That is, why whould

	while x, y:

be any different from

	while (x,  y):


My other concern is that <exit_condition> is evaluated out of sequence.

More information about the Python-Dev mailing list