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
> d
Gustavo J. A. M. Carneiro wrote:
> In that case,
>
> block VAR1 in EXPR1:
> BLOCK1
>
> And now I see how using 'for' statements (perhaps slightly changed)
> turned up in the discussion.
you're moving through this discussion exactly backwards; the current
proposal stems from the
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:
> >
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
>
>
> I think you misunderstood
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 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
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 this (plus you save one keyword):
>
> bl
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.
--