diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-03-21 21:16:24 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-03-21 21:16:24 +0000 |
commit | 8095c719c74f3355af9e551f26f9475c77c22908 (patch) | |
tree | 8c1115ca8f865005f3c57bb09bf00d6ee573ad4b /Python/ceval.c | |
parent | 9b8e399aca3c1f9bbf05c84ed3c2bf926d15f68c (diff) | |
download | cpython-8095c719c74f3355af9e551f26f9475c77c22908.tar.gz |
count keyword only arguments as part of the total
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 22c61550bf..0bd785b57c 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -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; } |