[pypy-svn] r7398 - pypy/trunk/src/pypy/objspace/flow

mgedmin at codespeak.net mgedmin at codespeak.net
Thu Nov 18 18:50:49 CET 2004


Author: mgedmin
Date: Thu Nov 18 18:50:49 2004
New Revision: 7398

Modified:
   pypy/trunk/src/pypy/objspace/flow/objspace.py
Log:
Use the name of the function (rather than the name of the code block) to
name flow graphs.  This makes a difference when functions are specialized.



Modified: pypy/trunk/src/pypy/objspace/flow/objspace.py
==============================================================================
--- pypy/trunk/src/pypy/objspace/flow/objspace.py	(original)
+++ pypy/trunk/src/pypy/objspace/flow/objspace.py	Thu Nov 18 18:50:49 2004
@@ -120,7 +120,7 @@
                                               constargs, closure)
         self.setup_executioncontext(ec)
         ec.build_flow()
-        name = ec.graph.name
+        name = func.func_name
         for c in "<>&!":
             name = name.replace(c, '_')
         ec.graph.name = name



More information about the Pypy-commit mailing list