[pypy-svn] r66209 - pypy/branch/parser-compiler/pypy/interpreter/astcompiler

benjamin at codespeak.net benjamin at codespeak.net
Tue Jul 14 17:03:33 CEST 2009


Author: benjamin
Date: Tue Jul 14 17:03:32 2009
New Revision: 66209

Modified:
   pypy/branch/parser-compiler/pypy/interpreter/astcompiler/symtable.py
Log:
mangle names when looking them up

Modified: pypy/branch/parser-compiler/pypy/interpreter/astcompiler/symtable.py
==============================================================================
--- pypy/branch/parser-compiler/pypy/interpreter/astcompiler/symtable.py	(original)
+++ pypy/branch/parser-compiler/pypy/interpreter/astcompiler/symtable.py	Tue Jul 14 17:03:32 2009
@@ -38,7 +38,7 @@
         self.nested = False
 
     def lookup(self, name):
-        return self.symbols.get(name, SCOPE_UNKNOWN)
+        return self.symbols.get(self.mangle(name), SCOPE_UNKNOWN)
 
     def note_symbol(self, identifier, role):
         mangled = self.mangle(identifier)



More information about the Pypy-commit mailing list