parent
44abad14a3
commit
476bd5ea97
|
@ -273,7 +273,7 @@ _PyCFunction_FastCallKeywords(PyObject *func, PyObject **stack,
|
||||||
Py_ssize_t nargs, PyObject *kwnames)
|
Py_ssize_t nargs, PyObject *kwnames)
|
||||||
{
|
{
|
||||||
PyObject *kwdict, *result;
|
PyObject *kwdict, *result;
|
||||||
Py_ssize_t nkwargs;
|
Py_ssize_t nkwargs = (kwnames == NULL) ? 0 : PyTuple_GET_SIZE(kwnames);
|
||||||
|
|
||||||
assert(PyCFunction_Check(func));
|
assert(PyCFunction_Check(func));
|
||||||
assert(nargs >= 0);
|
assert(nargs >= 0);
|
||||||
|
@ -282,7 +282,6 @@ _PyCFunction_FastCallKeywords(PyObject *func, PyObject **stack,
|
||||||
/* kwnames must only contains str strings, no subclass, and all keys must
|
/* kwnames must only contains str strings, no subclass, and all keys must
|
||||||
be unique */
|
be unique */
|
||||||
|
|
||||||
nkwargs = (kwnames == NULL) ? 0 : PyTuple_GET_SIZE(kwnames);
|
|
||||||
if (nkwargs > 0) {
|
if (nkwargs > 0) {
|
||||||
kwdict = _PyStack_AsDict(stack + nargs, kwnames);
|
kwdict = _PyStack_AsDict(stack + nargs, kwnames);
|
||||||
if (kwdict == NULL) {
|
if (kwdict == NULL) {
|
||||||
|
|
Loading…
Reference in New Issue