Commit 5f0eb2c6 authored by Stefan Behnel's avatar Stefan Behnel

disable self-argument extraction for lambda functions to revert to old "self...

disable self-argument extraction for lambda functions to revert to old "self in args" argument parsing behaviour
parent 4842d98b
......@@ -8903,7 +8903,7 @@ class PyCFunctionNode(ExprNode, ModuleNameMixin):
elif def_node.is_classmethod:
flags.append('__Pyx_CYFUNCTION_CLASSMETHOD')
if def_node.local_scope.parent_scope.is_c_class_scope:
if def_node.local_scope.parent_scope.is_c_class_scope and not def_node.entry.is_anonymous:
flags.append('__Pyx_CYFUNCTION_CCLASS')
if flags:
......
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