summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2007-11-24 00:29:24 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2007-11-24 00:29:24 (GMT)
commite670bd4f636d8a66a55e44b5e368cd2efd1c645c (patch)
tree1b26c744f305601ab123d4100fc0573e506869a3 /Python
parent2af1d894e3e8fea6b84b4229ef15be8d422b718d (diff)
downloadcpython-e670bd4f636d8a66a55e44b5e368cd2efd1c645c.zip
cpython-e670bd4f636d8a66a55e44b5e368cd2efd1c645c.tar.gz
cpython-e670bd4f636d8a66a55e44b5e368cd2efd1c645c.tar.bz2
fix #1409: cell variables were not initialized,
when the value comes from a keyword-only parameter.
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 70086e1..b4efa33 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -2708,7 +2708,7 @@ PyEval_EvalCodeEx(PyCodeObject *co, PyObject *globals, PyObject *locals,
Py_UNICODE *cellname, *argname;
PyObject *c;
- nargs = co->co_argcount;
+ nargs = co->co_argcount + co->co_kwonlyargcount;
if (co->co_flags & CO_VARARGS)
nargs++;
if (co->co_flags & CO_VARKEYWORDS)