[pypy-svn] r55726 - pypy/dist/pypy/interpreter/astcompiler

fijal at codespeak.net fijal at codespeak.net
Tue Jun 10 06:49:33 CEST 2008


Author: fijal
Date: Tue Jun 10 06:49:31 2008
New Revision: 55726

Modified:
   pypy/dist/pypy/interpreter/astcompiler/pycodegen.py
Log:
Behave *exactly* like cpython. This broke some stuff and people rely on it.
For record: http://morepypy.blogspot.com/2008/06/list-comprehension-implementation.html


Modified: pypy/dist/pypy/interpreter/astcompiler/pycodegen.py
==============================================================================
--- pypy/dist/pypy/interpreter/astcompiler/pycodegen.py	(original)
+++ pypy/dist/pypy/interpreter/astcompiler/pycodegen.py	Tue Jun 10 06:49:31 2008
@@ -596,7 +596,7 @@
     def visitListComp(self, node):
         self.set_lineno(node)
         # setup list
-        tmpname = "$list%d" % self.__list_count
+        tmpname = "_[%d]" % self.__list_count
         self.__list_count = self.__list_count + 1
         self.emitop_int('BUILD_LIST', 0)
         self.emit('DUP_TOP')



More information about the Pypy-commit mailing list