[Python-ideas] Updating PEP 315: do-while loops

Stefan Behnel stefan_ml at behnel.de
Sun Apr 26 09:47:17 CEST 2009


Ron Adam wrote:
> I'd prefer a bare "while:" with a more visible "break if" and possibly
> "continue if" expressions.
> 
> Visualize the while, continue, and break with syntax highlighting.
> 
>      while:
>          j = _int(random() 8 n)
>          break if j not in selected

Yep, I should read threads to the end before bringing in 'new' ideas...

Stefan




More information about the Python-ideas mailing list