mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-37221: Add PyCode_NewWithPosOnlyArgs to be used internally and set PyCode_New as a compatibility wrapper (GH-13959)
Add PyCode_NewEx to be used internally and set PyCode_New as a compatibility wrapper
This commit is contained in:
parent
fc1fbe6099
commit
4a2edc34a4
8 changed files with 79 additions and 34 deletions
|
@ -1396,7 +1396,7 @@ r_object(RFILE *p)
|
|||
if (lnotab == NULL)
|
||||
goto code_error;
|
||||
|
||||
v = (PyObject *) PyCode_New(
|
||||
v = (PyObject *) PyCode_NewWithPosOnlyArgs(
|
||||
argcount, posonlyargcount, kwonlyargcount,
|
||||
nlocals, stacksize, flags,
|
||||
code, consts, names, varnames,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue