import unittest import dis import struct import sys from numba import jit from numba.tests.support import TestCase, tweak_code class TestExtendedArg(TestCase): """ Test support for the EXTENDED_ARG opcode. """ def get_extended_arg_load_const(self): """ Get a function with a EXTENDED_ARG opcode before a LOAD_CONST opcode. """ def f(): x = 5 return x b = bytearray(f.__code__.co_code) consts = f.__code__.co_consts bytecode_len = 0xff bytecode_format = "