Fredrik Lundh wrote:
the current
proposal stems from the observation that for-loop plus generators in
today's Python does in fact provide a block implementation that solves
many use cases in an elegant way.
PEP 340 builds on this, sorts out a couple of weak points in the current
design,
I have not read every email about this subject, so sorry if this has
already been mentioned.
In PEP 340 I read:
block EXPR1 as VAR1:
BLOCK1
I think it would be much clearer this (plus you save one keyword):
block VAR1 = EXPR1:
BLOCK1
Regards.
On May 4, 2005, at 2:29 PM, Fredrik Lundh wrote:
Gustavo J. A. M. Carneiro wrote:
I have not read every email about this subject, so sorry if this
has
already been mentioned.
In PEP 340 I read:
block EXPR1 as VAR1:
BLOCK1
I think it would be much clearer
Gustavo J. A. M. Carneiro wrote:
In PEP 340 I read:
block EXPR1 as VAR1:
BLOCK1
I think it would be much clearer this (plus you save one keyword):
block VAR1 = EXPR1:
BLOCK1
I think you misunderstood the statement. EXPR1 creates an
On Wed, 2005-05-04 at 13:08 -0600, Shane Hathaway wrote:
Gustavo J. A. M. Carneiro wrote:
In PEP 340 I read:
block EXPR1 as VAR1:
BLOCK1
I think it would be much clearer this (plus you save one keyword):
block VAR1 = EXPR1:
BLOCK1