[pypy-svn] r7694 - in pypy/trunk/src/pypy/translator: . tool/pygame

arigo at codespeak.net arigo at codespeak.net
Sun Nov 28 13:01:54 CET 2004


Author: arigo
Date: Sun Nov 28 13:01:53 2004
New Revision: 7694

Modified:
   pypy/trunk/src/pypy/translator/annrpython.py
   pypy/trunk/src/pypy/translator/tool/pygame/flowviewer.py
Log:
Re-oups.  A previous check-in broked the history of variables in the 
pygame viewer.


Modified: pypy/trunk/src/pypy/translator/annrpython.py
==============================================================================
--- pypy/trunk/src/pypy/translator/annrpython.py	(original)
+++ pypy/trunk/src/pypy/translator/annrpython.py	Sun Nov 28 13:01:53 2004
@@ -31,10 +31,10 @@
         self.blocked_functions = {} # set of functions that have blocked blocks
         self.notify = {}        # {block: {positions-to-reflow-from-when-done}}
         self.bindingshistory = {}# map Variables to lists of SomeValues
-        self.binding_caused_by = {}     # map Variables to Factories
-                # records the FuncCallFactory that caused bindings of inputargs
-                # to be updated
-        self.binding_cause_history = {} # map Variables to lists of Factories
+        self.binding_caused_by = {}     # map Variables to position_keys
+               # records the caller position that caused bindings of inputargs
+               # to be updated
+        self.binding_cause_history = {} # map Variables to lists of positions
                 # history of binding_caused_by, kept in sync with
                 # bindingshistory
         self.bookkeeper = Bookkeeper(self)

Modified: pypy/trunk/src/pypy/translator/tool/pygame/flowviewer.py
==============================================================================
--- pypy/trunk/src/pypy/translator/tool/pygame/flowviewer.py	(original)
+++ pypy/trunk/src/pypy/translator/tool/pygame/flowviewer.py	Sun Nov 28 13:01:53 2004
@@ -30,7 +30,7 @@
         if info.origin is not None:
             label += "\\n" + self.createlink(info.origin, 'Originated at')
         if caused_by is not None:
-            label += '\\n' + self.createlink(caused_by.position_key)
+            label += '\\n' + self.createlink(caused_by)
         if info.caused_by_merge is not None:
             data = 'unionof%r' % (info.caused_by_merge,)
             label += '\\n%s' % nottoowide(data)
@@ -41,7 +41,7 @@
             if data.origin is not None:
                 label += "\\n" + self.createlink(data.origin, 'Originated at')
             if caused_by is not None:
-                label += '\\n' + self.createlink(caused_by.position_key)
+                label += '\\n' + self.createlink(caused_by)
             dotgen.emit_node(str(n+1), shape="box", label=label)
             dotgen.emit_edge(str(n+1), str(n))
         links = self.links  # GraphLayout.__init__ will override it with {}



More information about the Pypy-commit mailing list