diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2023-07-27 13:15:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-27 13:15:25 (GMT) |
commit | d77d973335835bd744be8106010061cb338b0ae1 (patch) | |
tree | 528013e464a38efb2cd09efd552609545051d8f8 /Lib/opcode.py | |
parent | 766d2518ae8384c6bd7f82727defeb86847ccf64 (diff) | |
download | cpython-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.py | 6 |
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() +} |