[pypy-commit] pypy ufuncapi: assert yet again that args_w contains W_NDimArray items for translation

mattip noreply at buildbot.pypy.org
Sat Nov 29 22:00:35 CET 2014


Author: mattip <matti.picus at gmail.com>
Branch: ufuncapi
Changeset: r74761:ad40184861fe
Date: 2014-11-29 23:00 +0200
http://bitbucket.org/pypy/pypy/changeset/ad40184861fe/

Log:	assert yet again that args_w contains W_NDimArray items for
	translation

diff --git a/pypy/module/micronumpy/ufuncs.py b/pypy/module/micronumpy/ufuncs.py
--- a/pypy/module/micronumpy/ufuncs.py
+++ b/pypy/module/micronumpy/ufuncs.py
@@ -1322,6 +1322,7 @@
         else:
             for i in range(len(args_w)):
                 arg_i = args_w[i]
+                assert isinstance(arg_i, W_NDimArray)
                 raw_storage_setitem(dataps, CCHARP_SIZE * i,
                         rffi.cast(rffi.CCHARP, arg_i.implementation.get_storage_as_int(space)))
         try:


More information about the pypy-commit mailing list