This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author danijar
Recipients benjamin.peterson, brett.cannon, danijar, yselivanov
Date 2018-08-05.16:37:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1533487024.74.0.56676864532.issue34339@psf.upfronthosting.co.za>
In-reply-to
Content
It would be great to support argument unpacking for lambdas. Example:

  lambda x, (y, z): x + y + z

instead of

  lambda x, y_and_z: x + y_and_z[0] + y_and_z[1]

Similar unpacking syntax is available for normal functions:

  def foo(x, y_and_z):
    y, z = y_and_z
    return x + y + z

This would greatly increase readability in some cases.
History
Date User Action Args
2018-08-05 16:37:04danijarsetrecipients: + danijar, brett.cannon, benjamin.peterson, yselivanov
2018-08-05 16:37:04danijarsetmessageid: <1533487024.74.0.56676864532.issue34339@psf.upfronthosting.co.za>
2018-08-05 16:37:04danijarlinkissue34339 messages
2018-08-05 16:37:04danijarcreate