Commit 8a910f47 authored by Pablo Galindo's avatar Pablo Galindo Committed by Stefan Behnel

Correct code object invocation after semantic change of co_argcount for CPython 3.8b1 (GH-2980)

parent 364dcff3
...@@ -9574,7 +9574,7 @@ class CodeObjectNode(ExprNode): ...@@ -9574,7 +9574,7 @@ class CodeObjectNode(ExprNode):
code.putln("%s = (PyObject*)__Pyx_PyCode_New(%d, %d, %d, %d, 0, %s, %s, %s, %s, %s, %s, %s, %s, %s, %d, %s); %s" % ( code.putln("%s = (PyObject*)__Pyx_PyCode_New(%d, %d, %d, %d, 0, %s, %s, %s, %s, %s, %s, %s, %s, %s, %d, %s); %s" % (
self.result_code, self.result_code,
len(func.args) - func.num_kwonly_args - func.num_posonly_args, # argcount len(func.args) - func.num_kwonly_args, # argcount
func.num_posonly_args, # posonlyargcount (Py3.8+ only) func.num_posonly_args, # posonlyargcount (Py3.8+ only)
func.num_kwonly_args, # kwonlyargcount (Py3 only) func.num_kwonly_args, # kwonlyargcount (Py3 only)
len(self.varnames.args), # nlocals len(self.varnames.args), # nlocals
......
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