[Python-ideas] Commas [was Re: except expression]
Chris Angelico
rosuav at gmail.com
Tue Feb 18 22:52:14 CET 2014
On Wed, Feb 19, 2014 at 8:41 AM, Steven D'Aprano <steve at pearwood.info> wrote:
>> People are always free to insert parens
>> to make things clearer. E.g. I would probably write
>> the above as
>>
>> (lambda (x, y): x + y), 2
>
> Well, you could try to, but it won't work in Python 3. That's a
> SyntaxError.
And it's semantically different in Py2 - it takes a two-element tuple,
rather than two args.
ChrisA
More information about the Python-ideas
mailing list