mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
bpo-36030: Remove _PyStack_AsTuple() and _PyStack_AsTupleSlice() (GH-12032)
This commit is contained in:
parent
b5853e2650
commit
f1b9abe35f
3 changed files with 6 additions and 36 deletions
|
@ -5,6 +5,7 @@
|
|||
#include "ast.h"
|
||||
#undef Yield /* undefine macro conflicting with <winbase.h> */
|
||||
#include "pycore_pystate.h"
|
||||
#include "pycore_tupleobject.h"
|
||||
|
||||
_Py_IDENTIFIER(__builtins__);
|
||||
_Py_IDENTIFIER(__dict__);
|
||||
|
@ -121,7 +122,7 @@ builtin___build_class__(PyObject *self, PyObject *const *args, Py_ssize_t nargs,
|
|||
"__build_class__: name is not a string");
|
||||
return NULL;
|
||||
}
|
||||
orig_bases = _PyStack_AsTupleSlice(args, nargs, 2, nargs);
|
||||
orig_bases = _PyTuple_FromArray(args + 2, nargs - 2);
|
||||
if (orig_bases == NULL)
|
||||
return NULL;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue