mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
don't count keyword arguments as positional #9943
This commit is contained in:
parent
a847c81914
commit
81437c9025
2 changed files with 4 additions and 1 deletions
|
@ -3104,7 +3104,7 @@ PyEval_EvalCodeEx(PyCodeObject *co, PyObject *globals, PyObject *locals,
|
|||
defcount ? "at most" : "exactly",
|
||||
co->co_argcount,
|
||||
co->co_argcount == 1 ? "" : "s",
|
||||
argcount + kwcount);
|
||||
argcount);
|
||||
goto fail;
|
||||
}
|
||||
n = co->co_argcount;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue