Re: [Python-Dev] PEP 340: propose to get rid of 'as' keyword

2005-05-05 Thread Greg Ewing
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

Re: [Python-Dev] PEP 340: propose to get rid of 'as' keyword

2005-05-05 Thread Fredrik Lundh
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

Re: [Python-Dev] PEP 340: propose to get rid of 'as' keyword

2005-05-04 Thread Gustavo J. A. M. Carneiro
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: > >

Re: [Python-Dev] PEP 340: propose to get rid of 'as' keyword

2005-05-04 Thread Shane Hathaway
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

Re: [Python-Dev] PEP 340: propose to get rid of 'as' keyword

2005-05-04 Thread Shane Hathaway
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

Re: [Python-Dev] PEP 340: propose to get rid of 'as' keyword

2005-05-04 Thread Bob Ippolito
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

Re: [Python-Dev] PEP 340: propose to get rid of 'as' keyword

2005-05-04 Thread Fredrik Lundh
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

[Python-Dev] PEP 340: propose to get rid of 'as' keyword

2005-05-04 Thread Gustavo J. A. M. Carneiro
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. --