Mercurial > cpython-lru_cache-weakref
diff Python/ceval.c @ 43996:b86e6bf7438f
fix #1409: cell variables were not initialized,
when the value comes from a keyword-only parameter.
| author | Amaury Forgeot d'Arc <amauryfa@gmail.com> |
|---|---|
| date | Sat, 24 Nov 2007 00:29:24 +0000 |
| parents | 73c8e27eb9ce |
| children | f324631462a2 |
line wrap: on
line diff
--- a/Python/ceval.c Fri Nov 23 21:26:49 2007 +0000 +++ b/Python/ceval.c Sat Nov 24 00:29:24 2007 +0000 @@ -2708,7 +2708,7 @@ 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)
