PEP: statements in control structures

Rich Harkins rharkins at
Thu Oct 18 23:50:18 CEST 2001

Skip Montanaro (skip at
>     Rich> Or perhaps along that same vein...
>     Rich> while line from file.readline():
>     Rich>       ...
> Python 2.2 with iterator support already supports
>     for line in file:
>         ...

True indeed.  I was (weakly) suggesting "from" as an alternative to the
assignement opperator but not wanting too much to end up mired in *that*
boondoggle. :)

(now diving for cover in a bomb shelter)   :)

More information about the Python-list mailing list