[pypy-svn] r16593 - pypy/dist/pypy/interpreter/stablecompiler

cfbolz at codespeak.net cfbolz at codespeak.net
Fri Aug 26 12:46:19 CEST 2005


Author: cfbolz
Date: Fri Aug 26 12:46:18 2005
New Revision: 16593

Modified:
   pypy/dist/pypy/interpreter/stablecompiler/pycodegen.py
Log:
Use the same name <lambda> for all code objects of lambda functions,
as in CPython, instead of using a counter.


Modified: pypy/dist/pypy/interpreter/stablecompiler/pycodegen.py
==============================================================================
--- pypy/dist/pypy/interpreter/stablecompiler/pycodegen.py	(original)
+++ pypy/dist/pypy/interpreter/stablecompiler/pycodegen.py	Fri Aug 26 12:46:18 2005
@@ -1296,15 +1296,13 @@
 
 class AbstractFunctionCode:
     optimized = 1
-    lambdaCount = 0
 
     def __init__(self, func, scopes, isLambda, class_name, mod):
         self.class_name = class_name
         self.module = mod
         if isLambda:
             klass = FunctionCodeGenerator
-            name = "<lambda.%d>" % klass.lambdaCount
-            klass.lambdaCount = klass.lambdaCount + 1
+            name = "<lambda>"
         else:
             name = func.name
 



More information about the Pypy-commit mailing list