Commit d4df9dd0 authored by Stefan Behnel's avatar Stefan Behnel

do not try to generated embedded signatures for lambda functions

parent c238e5b0
......@@ -150,6 +150,10 @@ class EmbedSignature(CythonTransform):
self.class_node = oldclass
return node
def visit_LambdaNode(self, node):
# lambda expressions so not have signature or inner functions
return node
def visit_DefNode(self, node):
if not self.current_directives['embedsignature']:
return node
......
......@@ -402,3 +402,7 @@ cpdef f_defexpr4(int x = (Ext.CONST1 + FLAG1) * Ext.CONST2):
cpdef f_defexpr5(int x = 2+2):
pass
# no signatures for lambda functions
lambda_foo = lambda x: 10
lambda_bar = lambda x: 20
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