summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-05-31 07:04:16 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-05-31 07:04:16 (GMT)
commit40174c358fc87cd1af79969e60da5d76093768a3 (patch)
tree0ea3e622119884d25d7540adc3c333861d4d5d2a /Python
parentca2a2f11d0ee7c8dee0f74d001c6f3f7d15adac9 (diff)
downloadcpython-40174c358fc87cd1af79969e60da5d76093768a3.zip
cpython-40174c358fc87cd1af79969e60da5d76093768a3.tar.gz
cpython-40174c358fc87cd1af79969e60da5d76093768a3.tar.bz2
SF bug #733667: kwargs handled incorrectly
The fast_function() inlining optimization only applies when there are zero keyword arguments.
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 85e9e6b..c652b07 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -3468,7 +3468,7 @@ fast_function(PyObject *func, PyObject ***pp_stack, int n, int na, int nk)
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;