Mercurial > cpython-lru_cache-weakref
diff Python/ceval.c @ 29339:fc286e28556f legacy-trunk
SF bug #733667: kwargs handled incorrectly
The fast_function() inlining optimization only
applies when there are zero keyword arguments.
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Sat, 31 May 2003 07:04:16 +0000 |
| parents | f9495815c18f |
| children | 2f731c57cdc6 |
line wrap: on
line diff
--- a/Python/ceval.c Fri May 30 23:59:44 2003 +0000 +++ b/Python/ceval.c Sat May 31 07:04:16 2003 +0000 @@ -3468,7 +3468,7 @@ PCALL(PCALL_FUNCTION); PCALL(PCALL_FAST_FUNCTION); - if (argdefs == NULL && co->co_argcount == n && + if (argdefs == NULL && co->co_argcount == n && nk==0 && co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) { PyFrameObject *f; PyObject *retval = NULL;
