[pypy-commit] pypy numpy-dtype-alt: further attempts at RPythonification

alex_gaynor noreply at buildbot.pypy.org
Mon Aug 22 07:09:21 CEST 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: numpy-dtype-alt
Changeset: r46696:190cccef14dc
Date: 2011-08-22 00:14 -0500
http://bitbucket.org/pypy/pypy/changeset/190cccef14dc/

Log:	further attempts at RPythonification

diff --git a/pypy/module/micronumpy/compile.py b/pypy/module/micronumpy/compile.py
--- a/pypy/module/micronumpy/compile.py
+++ b/pypy/module/micronumpy/compile.py
@@ -19,8 +19,12 @@
 
 class TrivialSpace(object):
     def __init__(self):
+        "NOT_RPYTHON"
         self.fromcache = InternalSpaceCache(self).getorbuild
 
+    def _freeze_(self):
+        return True
+
     def wrap(self, x):
         return x
 
diff --git a/pypy/module/micronumpy/test/test_zjit.py b/pypy/module/micronumpy/test/test_zjit.py
--- a/pypy/module/micronumpy/test/test_zjit.py
+++ b/pypy/module/micronumpy/test/test_zjit.py
@@ -7,6 +7,7 @@
     SingleDimSlice, scalar_w)
 from pypy.rlib.nonconst import NonConstant
 from pypy.rlib.objectmodel import specialize
+from pypy.rpython.annlowlevel import llstr
 from pypy.rpython.test.test_llinterp import interpret
 
 
@@ -327,6 +328,5 @@
     def test_translation(self):
         # we import main to check if the target compiles
         from pypy.translator.goal.targetnumpystandalone import main
-        from pypy.rpython.annlowlevel import llstr
 
         interpret(main, [llstr('af+'), 100])


More information about the pypy-commit mailing list