Mercurial > cpython-lru_cache-weakref
diff Python/ceval.c @ 59862:d0bdd0985637
count keyword only arguments as part of the total
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Sun, 21 Mar 2010 21:16:24 +0000 |
| parents | 41b225067f4d |
| children | 3833cf33ca61 |
line wrap: on
line diff
--- a/Python/ceval.c Sun Mar 21 21:12:03 2010 +0000 +++ b/Python/ceval.c Sun Mar 21 21:16:24 2010 +0000 @@ -3078,8 +3078,8 @@ "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; }
