defer compilation to frame.eval (pypy overrides frame.eval and has its own compilation

of source code to bytecode)

--HG--
branch : trunk
This commit is contained in:
holger krekel 2010-06-10 09:53:40 +02:00
parent 610cde6f85
commit 3b30c5b67a
1 changed files with 2 additions and 3 deletions

View File

@ -185,10 +185,9 @@ class Compare(Interpretable):
expr2.eval(frame)
self.explanation = "%s %s %s" % (
expr.explanation, operation, expr2.explanation)
co = compile("__exprinfo_left %s __exprinfo_right" % operation,
'?', 'eval')
source = "__exprinfo_left %s __exprinfo_right" % operation
try:
self.result = frame.eval(co, __exprinfo_left=expr.result,
self.result = frame.eval(source, __exprinfo_left=expr.result,
__exprinfo_right=expr2.result)
except passthroughex:
raise