On 25 January 2014 15:41, Greg Ewing <greg.ew...@canterbury.ac.nz> wrote:
> Brett Cannon wrote:
>>
>>
>> On Fri, Jan 24, 2014 at 10:50 AM, Ram Rachum <r...@rachum.com
>> <mailto:r...@rachum.com>> wrote:
>>
>>         lambda (x, y): whatever
>>
>> http://python.org/dev/peps/pep-3113/
>
>
> Part of the rationale in that PEP is that argument unpacking
> can always be replaced by an explicitly named argument and
> an unpacking assignment. No mention is made of the fact that
> you can't do this in a lambda, giving the impression that
> lambdas are deemed second-class citizens that are not worth
> consideration.

Given that lambdas only just escaped being removed entirely from the
language in Python 3, that impression isn't wrong.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncogh...@gmail.com   |   Brisbane, Australia
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to