PEP: statements in control structures

Rich Harkins rharkins at thinkronize.com
Thu Oct 18 17:43:00 EDT 2001


Or perhaps along that same vein...

while line from file.readline():
	...

Maybe that would work for expressional assignement too...

if (x from y) > 0:
	y += 1

Just a thought.
Rich
(who is now ducking for cover)      :)

[snip]

> How about such alternative syntax
> 
> while line where line = file.readline():
>     process(line)
> 
> There is new keyword "where", but it is much easy to read than
> 
> while line = file.readline(); line:
>     process(line)
> 
> 
> \Xi
> 
> 
> -- 
> http://mail.python.org/mailman/listinfo/python-list
> 




More information about the Python-list mailing list