summaryrefslogtreecommitdiffstats
path: root/Lib/opcode.py
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2023-07-27 13:15:25 (GMT)
committerGitHub <noreply@github.com>2023-07-27 13:15:25 (GMT)
commitd77d973335835bd744be8106010061cb338b0ae1 (patch)
tree528013e464a38efb2cd09efd552609545051d8f8 /Lib/opcode.py
parent766d2518ae8384c6bd7f82727defeb86847ccf64 (diff)
downloadcpython-d77d973335835bd744be8106010061cb338b0ae1.zip
cpython-d77d973335835bd744be8106010061cb338b0ae1.tar.gz
cpython-d77d973335835bd744be8106010061cb338b0ae1.tar.bz2
gh-105481: remove dependency of _inline_cache_entries on opname (#107339)
Diffstat (limited to 'Lib/opcode.py')
-rw-r--r--Lib/opcode.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/opcode.py b/Lib/opcode.py
index 36831d8..bed9223 100644
--- a/Lib/opcode.py
+++ b/Lib/opcode.py
@@ -347,6 +347,6 @@ _cache_format = {
},
}
-_inline_cache_entries = [
- sum(_cache_format.get(opname[opcode], {}).values()) for opcode in range(256)
-]
+_inline_cache_entries = {
+ name : sum(value.values()) for (name, value) in _cache_format.items()
+}