Skip to content

Commit 9de00e2

Browse files
committed
opcode: use frozendict for _cache_format values
1 parent a7af8a7 commit 9de00e2

1 file changed

Lines changed: 72 additions & 72 deletions

File tree

Lib/opcode.py

Lines changed: 72 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -47,78 +47,78 @@
4747
hascompare = [opmap["COMPARE_OP"]]
4848

4949
_cache_format = frozendict(
50-
LOAD_GLOBAL={
51-
"counter": 1,
52-
"index": 1,
53-
"module_keys_version": 1,
54-
"builtin_keys_version": 1,
55-
},
56-
BINARY_OP={
57-
"counter": 1,
58-
"descr": 4,
59-
},
60-
UNPACK_SEQUENCE={
61-
"counter": 1,
62-
},
63-
COMPARE_OP={
64-
"counter": 1,
65-
},
66-
CONTAINS_OP={
67-
"counter": 1,
68-
},
69-
FOR_ITER={
70-
"counter": 1,
71-
},
72-
LOAD_SUPER_ATTR={
73-
"counter": 1,
74-
},
75-
LOAD_ATTR={
76-
"counter": 1,
77-
"version": 2,
78-
"keys_version": 2,
79-
"descr": 4,
80-
},
81-
STORE_ATTR={
82-
"counter": 1,
83-
"version": 2,
84-
"index": 1,
85-
},
86-
CALL={
87-
"counter": 1,
88-
"func_version": 2,
89-
},
90-
CALL_KW={
91-
"counter": 1,
92-
"func_version": 2,
93-
},
94-
CALL_FUNCTION_EX={
95-
"counter": 1,
96-
},
97-
STORE_SUBSCR={
98-
"counter": 1,
99-
},
100-
SEND={
101-
"counter": 1,
102-
},
103-
JUMP_BACKWARD={
104-
"counter": 1,
105-
},
106-
TO_BOOL={
107-
"counter": 1,
108-
"version": 2,
109-
},
110-
POP_JUMP_IF_TRUE={
111-
"counter": 1,
112-
},
113-
POP_JUMP_IF_FALSE={
114-
"counter": 1,
115-
},
116-
POP_JUMP_IF_NONE={
117-
"counter": 1,
118-
},
119-
POP_JUMP_IF_NOT_NONE={
120-
"counter": 1,
121-
},
50+
LOAD_GLOBAL=frozendict(
51+
counter=1,
52+
index=1,
53+
module_keys_version=1,
54+
builtin_keys_version=1,
55+
),
56+
BINARY_OP=frozendict(
57+
counter=1,
58+
descr=4,
59+
),
60+
UNPACK_SEQUENCE=frozendict(
61+
counter=1,
62+
),
63+
COMPARE_OP=frozendict(
64+
counter=1,
65+
),
66+
CONTAINS_OP=frozendict(
67+
counter=1,
68+
),
69+
FOR_ITER=frozendict(
70+
counter=1,
71+
),
72+
LOAD_SUPER_ATTR=frozendict(
73+
counter=1,
74+
),
75+
LOAD_ATTR=frozendict(
76+
counter=1,
77+
version=2,
78+
keys_version=2,
79+
descr=4,
80+
),
81+
STORE_ATTR=frozendict(
82+
counter=1,
83+
version=2,
84+
index=1,
85+
),
86+
CALL=frozendict(
87+
counter=1,
88+
func_version=2,
89+
),
90+
CALL_KW=frozendict(
91+
counter=1,
92+
func_version=2,
93+
),
94+
CALL_FUNCTION_EX=frozendict(
95+
counter=1,
96+
),
97+
STORE_SUBSCR=frozendict(
98+
counter=1,
99+
),
100+
SEND=frozendict(
101+
counter=1,
102+
),
103+
JUMP_BACKWARD=frozendict(
104+
counter=1,
105+
),
106+
TO_BOOL=frozendict(
107+
counter=1,
108+
version=2,
109+
),
110+
POP_JUMP_IF_TRUE=frozendict(
111+
counter=1,
112+
),
113+
POP_JUMP_IF_FALSE=frozendict(
114+
counter=1,
115+
),
116+
POP_JUMP_IF_NONE=frozendict(
117+
counter=1,
118+
),
119+
POP_JUMP_IF_NOT_NONE=frozendict(
120+
counter=1,
121+
),
122122
)
123123

124124
_inline_cache_entries = frozendict({

0 commit comments

Comments
 (0)