PEP: statements in control structures
rharkins at thinkronize.com
Thu Oct 18 23:50:18 CEST 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*
(now diving for cover in a bomb shelter) :)
More information about the Python-list