Commit 28a086ea authored by Stefan Behnel's avatar Stefan Behnel

disable syntax support for "yield" expressions in function argument...

disable syntax support for "yield" expressions in function argument annotations and default args which never worked and crashes the compiler
parent d0d2ffa0
......@@ -2232,6 +2232,11 @@ class YieldNodeCollector(TreeVisitor):
def visit_GeneratorExpressionNode(self, node):
pass
def visit_CArgDeclNode(self, node):
# do not look into annotations
# FIXME: support (yield) in default arguments (currently crashes)
pass
class MarkClosureVisitor(CythonTransform):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment