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

Paul Rubin http
Wed Feb 18 02:11:38 EST 2004


Erik Max Francis <max at alcyone.com> writes:
> Man, what a perfect gaffe on my part.  The purpose of the do...while
> construct is to _eliminate_ the duplication.  This should be:
> 
> 	do:
> 	    line = inputFile.readline()
> 	while line:
> 	    ...

I still like the assignment expression better.



More information about the Python-list mailing list