summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-03-21 21:16:24 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-03-21 21:16:24 (GMT)
commitafcee8b78d92a02263ce1eb1015d0933d3e4e377 (patch)
tree28e7e2bdf79e2725682e86df05abfe009894bbac /Python
parentf3b7a25a218b76a8b31e49e592e3bda9ca2e1f13 (diff)
downloadcpython-afcee8b78d92a02263ce1eb1015d0933d3e4e377.zip
cpython-afcee8b78d92a02263ce1eb1015d0933d3e4e377.tar.gz
cpython-afcee8b78d92a02263ce1eb1015d0933d3e4e377.tar.bz2
count keyword only arguments as part of the total
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 22c6155..0bd785b 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;
}