lambda arguments unpack error

The removal of tuple unpacking is discussed in PEP 3113. Basically, you can’t do this in Python 3. Under the headline Transition plan, you see that the “suggested” way of doing this is as your final code block:

lambda x_y: x_y[0] + x_y[1]

Leave a Comment