diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2015-08-12 21:34:10 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2015-08-14 19:35:54 +0200 |
commit | 86859c518d96d23f9a487b2fe171a96da64a0f26 (patch) | |
tree | e7571abb9cafa149b8bd02a0d3c836610aa99a24 /Cython/Compiler/ParseTreeTransforms.py | |
parent | 27f8ddb6b2a16d5fe938a42a9655a1919b21161a (diff) | |
download | cython-86859c518d96d23f9a487b2fe171a96da64a0f26.tar.gz |
disable syntax support for "yield" expressions in function argument annotations and default args which never worked and crashes the compiler
Diffstat (limited to 'Cython/Compiler/ParseTreeTransforms.py')
-rw-r--r-- | Cython/Compiler/ParseTreeTransforms.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Cython/Compiler/ParseTreeTransforms.py b/Cython/Compiler/ParseTreeTransforms.py index d341d1ed8..947a77443 100644 --- a/Cython/Compiler/ParseTreeTransforms.py +++ b/Cython/Compiler/ParseTreeTransforms.py @@ -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): |