Exemplo n.º 1
0
 def handle(interp):
     framenames = [x.name for x in interp.frames]
     errors.append(O.simplify(framenames))
     raise
Exemplo n.º 2
0
def es(*args, **kwargs):
    return O.simplify(interpreter.evalString(*args, **kwargs))
Exemplo n.º 3
0
def eq(o1, o2):
    return O.simplify(o1) == O.simplify(o2)
Exemplo n.º 4
0
def func_slice(seq, begin, end):
    return O.List(seq.pyvalue[slice(O.simplify(begin), O.simplify(end))])
Exemplo n.º 5
0
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)))
Exemplo n.º 6
0
 def setUp(self):
     p = parse.Parser()
     self.p = lambda x: O.simplify(p.parse(x))