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

Paul Rubin http
Wed Feb 18 01:35:17 EST 2004


"Andrew Koenig" <ark at acm.org> writes:
> PEP 315 suggests that a statement such as
> 
>     do:
>         x = foo()
>     while x != 0:
>         bar(x)

I'm still scratching my head over that PEP.  Got a real-world code sample
that it would improve?



More information about the Python-list mailing list