PEP: statements in control structures
Rich Harkins
rharkins at thinkronize.com
Thu Oct 18 17:50:18 EDT 2001
Skip Montanaro (skip at pobox.com):
>
> 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. :)
Rich
(now diving for cover in a bomb shelter) :)
More information about the Python-list
mailing list