[prev in list] [next in list] [prev in thread] [next in thread]
List: pypy-svn
Subject: [pypy-svn] r35154 -
From: pedronis () codespeak ! net
Date: 2006-11-30 12:24:27
Message-ID: 20061130122427.B355D10075 () code0 ! codespeak ! net
[Download RAW message or body]
Author: pedronis
Date: Thu Nov 30 13:24:26 2006
New Revision: 35154
Modified:
pypy/branch/jit-real-world/pypy/jit/hintannotator/annotator.py
Log:
use None to mean the default policy, like the base rpython annotator.
Make hannotate in tests work as it is.
Hint annotator tests pass again.
Modified: pypy/branch/jit-real-world/pypy/jit/hintannotator/annotator.py
==============================================================================
--- pypy/branch/jit-real-world/pypy/jit/hintannotator/annotator.py (original)
+++ pypy/branch/jit-real-world/pypy/jit/hintannotator/annotator.py Thu Nov 30 13:24:26 2006
@@ -14,12 +14,12 @@
def look_inside_graph(self, graph):
return True
-DEFPOL = HintAnnotatorPolicy()
-
class HintAnnotator(RPythonAnnotator):
- def __init__(self, translator=None, base_translator=None, policy=DEFPOL):
+ def __init__(self, translator=None, base_translator=None, policy=None):
+ if policy is None:
+ policy = HintAnnotatorPolicy()
bookkeeper = HintBookkeeper(self)
RPythonAnnotator.__init__(self, translator, policy=policy,
bookkeeper=bookkeeper)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic