Author: Armin Rigo <ar...@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 _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit