Commit be9677c8 authored by Vitja Makarov's avatar Vitja Makarov

Function's self isn't actually used with dynamic args

parent 69cca645
......@@ -3083,7 +3083,7 @@ class DefNode(FuncDefNode):
return
arg_code_list = []
if self.entry.signature.has_dummy_arg:
if self.needs_outer_scope or self.defaults_struct:
if self.needs_outer_scope:
self_arg = 'PyObject *%s' % Naming.self_cname
else:
self_arg = 'CYTHON_UNUSED PyObject *%s' % Naming.self_cname
......
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