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

benjamin at codespeak.net benjamin at codespeak.net
Sat Jul 18 22:00:29 CEST 2009


Author: benjamin
Date: Sat Jul 18 22:00:27 2009
New Revision: 66391

Modified:
   pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py
Log:
fetch id attribute

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	Sat Jul 18 22:00:27 2009
@@ -856,7 +856,7 @@
             return False
         func_name = call.func
         assert isinstance(func_name, ast.Name)
-        name_scope = self.scope.lookup(func_name)
+        name_scope = self.scope.lookup(func_name.id)
         if name_scope == symtable.SCOPE_GLOBAL_IMPLICIT or \
                 name_scope == symtable.SCOPE_UNKNOWN:
             builtin_index = BUILTIN_TO_INDEX.get(call.func.id, -1)



More information about the Pypy-commit mailing list