mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-105481: generate op IDs from bytecode.c instead of hard coding them in opcode.py (#107971)
This commit is contained in:
parent
e88eb3775e
commit
665a4391e1
21 changed files with 1593 additions and 1521 deletions
|
@ -361,7 +361,7 @@ class EmbeddingTests(EmbeddingTestsMixin, unittest.TestCase):
|
|||
for instruction in dis.get_instructions(f, adaptive=True):
|
||||
opname = instruction.opname
|
||||
if (
|
||||
opname in opcode._specialized_instructions
|
||||
opname in opcode._specialized_opmap
|
||||
# Exclude superinstructions:
|
||||
and "__" not in opname
|
||||
):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue