[pypy-commit] pypy cpyext-injection: More translation fix
arigo
pypy.commits at gmail.com
Thu Oct 20 12:02:35 EDT 2016
Author: Armin Rigo <arigo at tunes.org>
Branch: cpyext-injection
Changeset: r87899:a0ba65ec1680
Date: 2016-10-20 17:11 +0100
http://bitbucket.org/pypy/pypy/changeset/a0ba65ec1680/
Log: More translation fix
diff --git a/pypy/module/cpyext/injection/numpy.py b/pypy/module/cpyext/injection/numpy.py
--- a/pypy/module/cpyext/injection/numpy.py
+++ b/pypy/module/cpyext/injection/numpy.py
@@ -7,6 +7,7 @@
from pypy.module.cpyext.api import PyObjectFields
from pypy.module.cpyext.api import bootstrap_function
from pypy.objspace.std.floatobject import W_FloatObject
+from pypy.objspace.std.typeobject import W_TypeObject
PyArrayObject = lltype.Ptr(lltype.Struct(
@@ -74,4 +75,5 @@
w_type = space.appexec([w_mod], """(mod):
return mod.typeinfo['DOUBLE'][-1]
""")
+ assert isinstance(w_type, W_TypeObject)
org.w_float64_type = w_type
More information about the pypy-commit
mailing list