New submission from mattip <[email protected]>: assignment fails for float array, int array succeeds >pypy-c-jit-63106-a271c0002bba-win32\pypy.exe Python 2.7.3 (a271c0002bba, Apr 06 2013, 22:01:08) [PyPy 2.0.0-beta2 with MSC v.1500 32 bit] on win32 Type "help", "copyright", "credits" or "license" for more information. And now for something completely different: ``PyPy development: the art of waiting'' >>>> import numpypy as np >>>> a=np.arange(10,dtype=float) >>>> a[0] = np.array([0.005]) Traceback (most recent call last): File "<console>", line 1, in <module> TypeError: expected float, got ndarray object >>>> a=np.arange(10) >>>> a[0] = np.array([5]) >>>>
---------- assignedto: mattip messages: 5538 nosy: mattip, pypy-issue priority: bug status: unread title: numpypy assignment to float array failure ________________________________________ PyPy bug tracker <[email protected]> <https://bugs.pypy.org/issue1438> ________________________________________ _______________________________________________ pypy-issue mailing list [email protected] http://mail.python.org/mailman/listinfo/pypy-issue
