(x, *, first_line=None)
return _get_instructions_bytes(co.co_code, co.co_varnames, co.co_names,
                                   co.co_consts, cell_names, linestarts,
                                   line_offset)
Iterator for the opcodes in methods, functions or code

    Generates a series of Instruction named tuples giving the details of
    each operations in the supplied code.

    If *first_line* is not None, it indicates the line number that should
    be reported for the first source line in the disassembled code.
    Otherwise, the source line information (if any) is taken directly from
    the disassembled code object.
Iterator for the opcodes in methods, functions or code
Iterator for the opcodes in methods functions or code
def get_instructions(x, *, first_line=None):
    """Iterator for the opcodes in methods, functions or code

    Generates a series of Instruction named tuples giving the details of
    each operations in the supplied code.

    If *first_line* is not None, it indicates the line number that should
    be reported for the first source line in the disassembled code.
    Otherwise, the source line information (if any) is taken directly from
    the disassembled code object.
    """
    co = _get_code_object(x)
    cell_names = co.co_cellvars + co.co_freevars
    linestarts = dict(findlinestarts(co))
    if first_line is not None:
        line_offset = first_line - co.co_firstlineno
    else:
        line_offset = 0
    return _get_instructions_bytes(co.co_code, co.co_varnames, co.co_names,
                                   co.co_consts, cell_names, linestarts,
                                   line_offset)
def get_instructions ( x , * , first_line = None ) : co = _get_code_object ( x ) cell_names = co . co_cellvars + co . co_freevars linestarts = dict ( findlinestarts ( co ) ) if first_line is not None : line_offset = first_line - co . co_firstlineno else : line_offset = 0 return _get_instructions_bytes ( co . co_code , co . co_varnames , co . co_names , co . co_consts , cell_names , linestarts , line_offset )