Author serhiy.storchaka
Recipients gvanrossum, lukasz.langa, serhiy.storchaka
Date 2018-09-30.16:25:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1538324700.29.0.545547206417.issue34854@psf.upfronthosting.co.za>
In-reply-to
Content
Compiling a string annotation containing a lambda with keyword-only argument without default value causes a crash.

from __future__ import annotations
def f() -> (lambda *, x: x): pass

The following PR fixes this crash. It also fixes other errors:

* Removes a space between "lambda" and ":" in the representation of lambda without argument.

* Removes the final "*" (it is incorrect syntax) in the representation of lambda without *args and keyword-only arguments when compile from AST.
History
Date User Action Args
2018-09-30 16:25:00serhiy.storchakasetrecipients: + serhiy.storchaka, gvanrossum, lukasz.langa
2018-09-30 16:25:00serhiy.storchakasetmessageid: <1538324700.29.0.545547206417.issue34854@psf.upfronthosting.co.za>
2018-09-30 16:25:00serhiy.storchakalinkissue34854 messages
2018-09-30 16:25:00serhiy.storchakacreate