Message389519
Hey @cleoold! Technically the second AST you gave is invalid (fun2), considering that the FunctionType is not an expression;
mod = Module(stmt* body, type_ignore* type_ignores)
| FunctionType(expr* argtypes, expr returns)
expr = BoolOp(boolop op, expr* values)
| NamedExpr(expr target, expr value)
| BinOp(expr left, operator op, expr right)
Though I am curious about use case. How did you come with the fun2's AST? |
|
Date |
User |
Action |
Args |
2021-03-25 19:05:07 | BTaskaya | set | recipients:
+ BTaskaya, cleoold |
2021-03-25 19:05:07 | BTaskaya | set | messageid: <1616699107.58.0.832073396787.issue43609@roundup.psfhosted.org> |
2021-03-25 19:05:07 | BTaskaya | link | issue43609 messages |
2021-03-25 19:05:07 | BTaskaya | create | |
|