ast.copy_location(new_node, old_node) Copy source location (lineno and col_offset) from old_node
Class.methods A dictionary mapping method names to line numbers.
is_imported() Return True if the symbol is created from an import statement.
tokenize.untokenize(iterable) Converts tokens back into Python source code. The iterable must return sequences with
class dis.Bytecode(x, *, first_line=None, current_offset=None) Analyse the bytecode corresponding to a function, generator,
dis() Return a formatted view of the bytecode operations (the same as printed by dis.dis(), but returned as a multi-line
ast.iter_fields(node) Yield a tuple of (fieldname, value) for each field in node._fields that is present
get_name() Return the symbol’s name.
Class.module The name of the module defining the class described by the class descriptor.
visit(node) Visit a node. The default implementation calls the method called self.visit_classname where
Page 8 of 15