mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-128891: add specialized opcodes to opcode.opname (#128892)
This commit is contained in:
parent
256d6d2131
commit
5eee2fe2b0
4 changed files with 15 additions and 4 deletions
|
@ -17,8 +17,9 @@ from _opcode_metadata import (_specializations, _specialized_opmap, opmap, # no
|
|||
EXTENDED_ARG = opmap['EXTENDED_ARG']
|
||||
|
||||
opname = ['<%r>' % (op,) for op in range(max(opmap.values()) + 1)]
|
||||
for op, i in opmap.items():
|
||||
opname[i] = op
|
||||
for m in (opmap, _specialized_opmap):
|
||||
for op, i in m.items():
|
||||
opname[i] = op
|
||||
|
||||
cmp_op = ('<', '<=', '==', '!=', '>', '>=')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue