PEP-0315--Enhanced While Loop: An idea for an alternative syntax

Peter Maas fpetermaas at netscape.net
Fri Feb 20 03:39:55 EST 2004


The do block is no safeguard against copy errors because it's optional.
A comment saves the same purpose. Replace

do:
     init()
while cond():
     body()

by

# init while
init()
while cond():
     body()


PEP-0315 shouldn't be added to Python.

Mit freundlichen Gruessen,

Peter Maas

-- 
-------------------------------------------------------------------
Peter Maas, M+R Infosysteme, D-52070 Aachen, Hubert-Wienen-Str. 24
Tel +49-241-93878-0 Fax +49-241-93878-20 eMail peter.maas at mplusr.de
-------------------------------------------------------------------



More information about the Python-list mailing list