[pypy-svn] r66548 - pypy/branch/parser-compiler/pypy/interpreter/astcompiler
benjamin at codespeak.net
benjamin at codespeak.net
Thu Jul 23 18:54:02 CEST 2009
Author: benjamin
Date: Thu Jul 23 18:54:01 2009
New Revision: 66548
Modified:
pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py
Log:
support visiting constants
Modified: pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py
==============================================================================
--- pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py (original)
+++ pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py Thu Jul 23 18:54:01 2009
@@ -724,6 +724,10 @@
self.update_position(string.lineno)
self.load_const(string.s)
+ def visit_Const(self, const):
+ self.update_position(const.lineno)
+ self.load_const(const.value)
+
def visit_UnaryOp(self, op):
self.update_position(op.lineno)
op.operand.walkabout(self)
More information about the Pypy-commit
mailing list