while (a=b()) ...

Evan Simpson evan at tokenexchange.com
Tue May 11 16:01:30 EDT 1999


This has been suggested (and Guido has said that he might well put it in) as
"and while", so that loop starts can be distinguished from loop
continuations.  Thus:

while 1:
  value = getValue()
and while value:
  process(value)

Moshe Zadka wrote:
> do:
>   line=sys.stdin.readline()
> while line:
>   sys.stdout.write(line)

neue-Schlüsselwörter-sind-verboten-ly yr's
Evan Simpson






More information about the Python-list mailing list