Greetings,
> Reasoning: The block statement resembles a "while" block in some ways in
> that it is a conditional block that may be executed only once, or
> possibly not at all (or many times). And the word "while" is also
> descriptive of how a block is used.
>
> while VAR1 from EXPR1():
> BLOCK
This is an interesting propose, but for a different PEP. In the
current propose VAR1 is not evaluated for truthness, and many of
the usage examples doesn't even require it.
This looks quite strange, for instance:
while dummy from locking(myLock):
# Do something
And also, this would require a break necessarily:
while (foo, bar) from locking():
# Pass
> This will require a new keyword/operator 'from' to use in a 'from'
> expression:
'from' is already a keyword, btw.
--
Gustavo Niemeyer
http://niemeyer.net
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com