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 BTaskaya
Recipients BTaskaya, cleoold
Date 2021-03-25.19:05:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1616699107.58.0.832073396787.issue43609@roundup.psfhosted.org>
In-reply-to
Content
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?
History
Date User Action Args
2021-03-25 19:05:07BTaskayasetrecipients: + BTaskaya, cleoold
2021-03-25 19:05:07BTaskayasetmessageid: <1616699107.58.0.832073396787.issue43609@roundup.psfhosted.org>
2021-03-25 19:05:07BTaskayalinkissue43609 messages
2021-03-25 19:05:07BTaskayacreate