def handle(interp): framenames = [x.name for x in interp.frames] errors.append(O.simplify(framenames)) raise
def es(*args, **kwargs): return O.simplify(interpreter.evalString(*args, **kwargs))
def eq(o1, o2): return O.simplify(o1) == O.simplify(o2)
def func_slice(seq, begin, end): return O.List(seq.pyvalue[slice(O.simplify(begin), O.simplify(end))])
def func_print(*args): sys.stdout.write(str(O.simplify(args[0]))) for x in args[1:]: sys.stdout.write(' ') sys.stdout.write(str(O.simplify(x)))
def setUp(self): p = parse.Parser() self.p = lambda x: O.simplify(p.parse(x))