dis.Bytecode.info()

info() Return a formatted multi-line string with detailed information about the code object, like code_info().

dis.Bytecode.from_traceback()

classmethod from_traceback(tb) Construct a Bytecode instance from the given traceback, setting current_offset to the instruction responsible for the exception.

dis.Bytecode.first_line

first_line The first source line of the code object (if available)

dis.Bytecode.dis()

dis() Return a formatted view of the bytecode operations (the same as printed by dis.dis(), but returned as a multi-line string).

dis.Bytecode.codeobj

codeobj The compiled code object.

dis.Bytecode

class dis.Bytecode(x, *, first_line=None, current_offset=None) Analyse the bytecode corresponding to a function, generator, method, string of source code, or a code object (as returned by compile()). This is a convenience wrapper around many of the functions listed below, most notably get_instructions(), as iterating over a Bytecode instance yields the bytecode operations as Instruction instances. If first_line is not None, it indicates the line number that should be reported for the first s

dir()

dir([object]) Without arguments, return the list of names in the current local scope. With an argument, attempt to return a list of valid attributes for that object. If the object has a method named __dir__(), this method will be called and must return the list of attributes. This allows objects that implement a custom __getattr__() or __getattribute__() function to customize the way dir() reports their attributes. If the object does not provide __dir__(), the function tries its best to gath

difflib.unified_diff()

difflib.unified_diff(a, b, fromfile='', tofile='', fromfiledate='', tofiledate='', n=3, lineterm='\n') Compare a and b (lists of strings); return a delta (a generator generating the delta lines) in unified diff format. Unified diffs are a compact way of showing just the lines that have changed plus a few lines of context. The changes are shown in an inline style (instead of separate before/after blocks). The number of context lines is set by n which defaults to three. By default, the diff co

difflib.SequenceMatcher.set_seqs()

set_seqs(a, b) Set the two sequences to be compared.

difflib.SequenceMatcher.set_seq2()

set_seq2(b) Set the second sequence to be compared. The first sequence to be compared is not changed.