def set_var(self, var, expr, var_tbl): return pyc_vis.dispatch_to_prefix( self, 'set_var_to_', 'set_var_default', expr, var, var_tbl )
def visit_BoolOp(self, node): def unknown_op(node, *args): raise Exception("unsupported BoolOp: %s" % ast.dump(node)) return pyc_vis.dispatch_to_prefix( self, 'visit_BoolOp_', unknown_op, node.op, node )
def set_var_to_UnaryOp(self, node, var, var_tbl): def unknown_unaryop(op, node, var, var_tbl): raise Exception("unknown unary op: %s" % ast.dump(op)) return pyc_vis.dispatch_to_prefix( self, 'set_var_to_UnaryOp_', unknown_unaryop, node.op, node, var, var_tbl )