diff options
Diffstat (limited to 'Python/specialize.c')
-rw-r--r-- | Python/specialize.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/specialize.c b/Python/specialize.c index fe4a65ee5f8..7861f3845bf 100644 --- a/Python/specialize.c +++ b/Python/specialize.c @@ -2147,7 +2147,7 @@ specialize_c_call(PyObject *callable, _Py_CODEUNIT *instr, int nargs) } /* len(o) */ PyInterpreterState *interp = _PyInterpreterState_GET(); - if (callable == interp->callable_cache.len) { + if (callable == interp->callable_cache.len && instr->op.arg == 1) { specialize(instr, CALL_LEN); return 0; } |