Python pickletools Functions

EditRocket provides the following information on pickletools functions in the Python source code builder.

dis(pickle[, out=None, memo=None, indentlevel=4]) - Outputs a symbolic disassembly of the pickle to the file-like object out, defaulting to sys.

genops(pickle) - Provides an iterator over all of the opcodes in a pickle, returning a sequence of (opcode, arg, pos) triples.