divmod()

divmod(a, b) Take two (non complex) numbers as arguments and return a pair of numbers consisting of their quotient and remainder when using integer division. With mixed operand types, the rules for binary arithmetic operators apply. For integers, the result is the same as (a // b, a % b). For floating point numbers the result is (q, a % b), where q is usually math.floor(a / b) but may be 1 less than that. In any case q * b + a % b is very close to a, if a % b is non-zero it has the same sign

dis.show_code()

dis.show_code(x, *, file=None) Print detailed code object information for the supplied function, method, source code string or code object to file (or sys.stdout if file is not specified). This is a convenient shorthand for print(code_info(x), file=file), intended for interactive exploration at the interpreter prompt. New in version 3.2. Changed in version 3.4: Added file parameter.

dis.opname

dis.opname Sequence of operation names, indexable using the bytecode.

dis.stack_effect()

dis.stack_effect(opcode[, oparg]) Compute the stack effect of opcode with argument oparg. New in version 3.4.

dis.Instruction.is_jump_target

is_jump_target True if other code jumps to here, otherwise False

dis.opmap

dis.opmap Dictionary mapping operation names to bytecodes.

dis.Instruction.opcode

opcode numeric code for operation, corresponding to the opcode values listed below and the bytecode values in the Opcode collections.

dis.Instruction.offset

offset start index of operation within bytecode sequence

dis.Instruction.opname

opname human readable name for operation

dis.Instruction.starts_line

starts_line line started by this opcode (if any), otherwise None