Re: why syntax change in lambda

2013-09-11 Thread Steven D'Aprano
On Wed, 11 Sep 2013 09:03:49 -0400, Neal Becker wrote: > In py2.7 this was accepted, but not in py3.3. Is this intentional? It > seems to violate the 'principle' that extraneous parentheses are usually > allowed/ignored > > In [1]: p = lambda x: x > > In [2]: p = lambda (x): x > File "", lin

Re: why syntax change in lambda

2013-09-11 Thread Oscar Benjamin
On 11 September 2013 14:03, Neal Becker wrote: > In py2.7 this was accepted, but not in py3.3. Is this intentional? It seems > to > violate the 'principle' that extraneous parentheses are usually > allowed/ignored > > In [1]: p = lambda x: x > > In [2]: p = lambda (x): x > File "", line 1 >

why syntax change in lambda

2013-09-11 Thread Neal Becker
In py2.7 this was accepted, but not in py3.3. Is this intentional? It seems to violate the 'principle' that extraneous parentheses are usually allowed/ignored In [1]: p = lambda x: x In [2]: p = lambda (x): x File "", line 1 p = lambda (x): x ^ SyntaxError: invalid syntax