[pypy-svn] r35359 - pypy/dist/pypy/translator

arigo at codespeak.net arigo at codespeak.net
Wed Dec 6 03:11:03 CET 2006


Author: arigo
Date: Wed Dec  6 03:10:45 2006
New Revision: 35359

Modified:
   pypy/dist/pypy/translator/interactive.py
Log:
(pedronis, arigo)

Reorder the building of the entry point graph, so that a
"simplifying=False" flag can be taken into account.



Modified: pypy/dist/pypy/translator/interactive.py
==============================================================================
--- pypy/dist/pypy/translator/interactive.py	(original)
+++ pypy/dist/pypy/translator/interactive.py	Wed Dec  6 03:10:45 2006
@@ -17,9 +17,6 @@
 
         self.entry_point = entry_point
         self.context = TranslationContext(config=self.config)
-        # for t.view() to work just after construction
-        graph = self.context.buildflowgraph(entry_point)
-        self.context._prebuilt_graphs[entry_point] = graph
 
         # hook into driver events
         driver_own_event = self.driver._event
@@ -30,6 +27,9 @@
         self.driver_setup = False
 
         self.update_options(argtypes, kwds)
+        # for t.view() to work just after construction
+        graph = self.context.buildflowgraph(entry_point)
+        self.context._prebuilt_graphs[entry_point] = graph
 
     def view(self):
         self.context.view()



More information about the Pypy-commit mailing list