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

Stephen J. Turnbull stephen at xemacs.org
Mon Apr 27 06:48:31 CEST 2009


Mathias Panzenböck writes:
 > Why not:
 > 
 > loop:
 > 	...
 > 	if cond: break
 > 
 > 
 > where "loop:" is short for "while True:".

Er, maybe because not every idiom involving a constant needs to be
replaced by new syntax?




More information about the Python-ideas mailing list