[pypy-svn] r75240 - pypy/trunk/py/_code
hpk at codespeak.net
hpk at codespeak.net
Thu Jun 10 09:50:25 CEST 2010
Author: hpk
Date: Thu Jun 10 09:50:23 2010
New Revision: 75240
Modified:
pypy/trunk/py/_code/_assertionold.py
Log:
defer compilation to frame.eval so that pypy can override and compile to bytecode on its own
Modified: pypy/trunk/py/_code/_assertionold.py
==============================================================================
--- pypy/trunk/py/_code/_assertionold.py (original)
+++ pypy/trunk/py/_code/_assertionold.py Thu Jun 10 09:50:23 2010
@@ -185,10 +185,9 @@
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
More information about the Pypy-commit
mailing list