Re: [Python-Dev] problem with genexp

2006-02-24 Thread Neal Norwitz
On 2/20/06, Jiwon Seo <[EMAIL PROTECTED]> wrote: > Regarding this Grammar change; (last October) > from argument: [test '=' ] test [gen_for] > to argument: test [gen_for] | test '=' test ['(' gen_for ')'] > > - to raise error for "bar(a = i for i in range(10)) )" > > I think we sh

Re: [Python-Dev] problem with genexp

2006-02-20 Thread Jiwon Seo
Regarding this Grammar change; (last October) from argument: [test '=' ] test [gen_for] to argument: test [gen_for] | test '=' test ['(' gen_for ')'] - to raise error for "bar(a = i for i in range(10)) )" I think we should change it to argument: test [gen_for] | test '=' te

Re: [Python-Dev] problem with genexp

2005-10-20 Thread Neal Norwitz
On 10/16/05, Neal Norwitz <[EMAIL PROTECTED]> wrote: > On 10/10/05, Neal Norwitz <[EMAIL PROTECTED]> wrote: > > There's a problem with genexp's that I think really needs to get > > fixed. See http://python.org/sf/1167751 the details are below. This > > code: > > > > >>> foo(a = i for i in range(1

Re: [Python-Dev] problem with genexp

2005-10-17 Thread Jiwon Seo
On 10/16/05, Neal Norwitz <[EMAIL PROTECTED]> wrote: > On 10/10/05, Neal Norwitz <[EMAIL PROTECTED]> wrote: > > There's a problem with genexp's that I think really needs to get > > fixed. See http://python.org/sf/1167751 the details are below. This > > code: > > > > >>> foo(a = i for i in range(1

Re: [Python-Dev] problem with genexp

2005-10-16 Thread Neal Norwitz
On 10/10/05, Neal Norwitz <[EMAIL PROTECTED]> wrote: > There's a problem with genexp's that I think really needs to get > fixed. See http://python.org/sf/1167751 the details are below. This > code: > > >>> foo(a = i for i in range(10)) > > I agree with the bug report that the code should either r

Re: [Python-Dev] problem with genexp

2005-10-11 Thread Nick Coghlan
Nick Coghlan wrote: > Neal Norwitz wrote: > >>There's a problem with genexp's that I think really needs to get >>fixed. See http://python.org/sf/1167751 the details are below. This >>code: >>I agree with the bug report that the code should either raise a >>SyntaxError or do the right thing. > >

Re: [Python-Dev] problem with genexp

2005-10-11 Thread Jeremy Hylton
On 10/11/05, Nick Coghlan <[EMAIL PROTECTED]> wrote: > Neal Norwitz wrote: > > There's a problem with genexp's that I think really needs to get > > fixed. See http://python.org/sf/1167751 the details are below. This > > code: > > I agree with the bug report that the code should either raise a > >

Re: [Python-Dev] problem with genexp

2005-10-11 Thread Nick Coghlan
Neal Norwitz wrote: > There's a problem with genexp's that I think really needs to get > fixed. See http://python.org/sf/1167751 the details are below. This > code: > I agree with the bug report that the code should either raise a > SyntaxError or do the right thing. I agree it should be a Synta

Re: [Python-Dev] problem with genexp

2005-10-10 Thread Neal Norwitz
On 10/10/05, Brett Cannon <[EMAIL PROTECTED]> wrote: > On 10/10/05, Neal Norwitz <[EMAIL PROTECTED]> wrote: > > There's a problem with genexp's that I think really needs to get > > fixed. See http://python.org/sf/1167751 the details are below. This > > code: > > > > >>> foo(a = i for i in range(1

Re: [Python-Dev] problem with genexp

2005-10-10 Thread Brett Cannon
On 10/10/05, Neal Norwitz <[EMAIL PROTECTED]> wrote: > There's a problem with genexp's that I think really needs to get > fixed. See http://python.org/sf/1167751 the details are below. This > code: > > >>> foo(a = i for i in range(10)) > > generates "NameError: name 'i' is not defined" when run b

[Python-Dev] problem with genexp

2005-10-10 Thread Neal Norwitz
There's a problem with genexp's that I think really needs to get fixed. See http://python.org/sf/1167751 the details are below. This code: >>> foo(a = i for i in range(10)) generates "NameError: name 'i' is not defined" when run because: 2 0 LOAD_GLOBAL 0 (foo)