From 7820a5897e7762df23bff1cbe749652130654a08 Mon Sep 17 00:00:00 2001 From: Brandt Bucher Date: Tue, 1 Mar 2022 05:53:13 -0800 Subject: bpo-46841: Use inline caching for `COMPARE_OP` (GH-31622) --- Lib/opcode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/opcode.py') diff --git a/Lib/opcode.py b/Lib/opcode.py index fb2d24fd1f0..dc45cff3017 100644 --- a/Lib/opcode.py +++ b/Lib/opcode.py @@ -125,7 +125,7 @@ def_op('BUILD_LIST', 103) # Number of list items def_op('BUILD_SET', 104) # Number of set items def_op('BUILD_MAP', 105) # Number of dict entries name_op('LOAD_ATTR', 106) # Index in name list -def_op('COMPARE_OP', 107) # Comparison operator +def_op('COMPARE_OP', 107, 2) # Comparison operator hascompare.append(107) name_op('IMPORT_NAME', 108) # Index in name list name_op('IMPORT_FROM', 109) # Index in name list -- cgit v1.2.3