mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
count keyword only arguments as part of the total
This commit is contained in:
parent
f3b7a25a21
commit
afcee8b78d
2 changed files with 8 additions and 2 deletions
|
@ -3078,8 +3078,8 @@ PyEval_EvalCodeEx(PyCodeObject *co, PyObject *globals, PyObject *locals,
|
|||
"argument%s (%d given)",
|
||||
co->co_name,
|
||||
defcount ? "at most" : "exactly",
|
||||
co->co_argcount,
|
||||
co->co_argcount == 1 ? "" : "s",
|
||||
total_args,
|
||||
total_args == 1 ? "" : "s",
|
||||
argcount + kwcount);
|
||||
goto fail;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue