Bug report
Bug description:
The following code, which works without error in Python 3.10, raises an IndexError in Python 3.13 when trying to access dis.cmp_op[instruction.arg]:
import dis
def my_fun(a, b):
return a <= b
for instruction in dis.get_instructions(my_fun):
if instruction.opname == 'COMPARE_OP':
print(dis.cmp_op[instruction.arg])
CPython versions tested on:
3.13
Operating systems tested on:
No response