Message326730
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. |
|
Date |
User |
Action |
Args |
2018-09-30 16:25:00 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, gvanrossum, lukasz.langa |
2018-09-30 16:25:00 | serhiy.storchaka | set | messageid: <1538324700.29.0.545547206417.issue34854@psf.upfronthosting.co.za> |
2018-09-30 16:25:00 | serhiy.storchaka | link | issue34854 messages |
2018-09-30 16:25:00 | serhiy.storchaka | create | |
|