[pypy-issue] [issue1438] numpypy assignment to float array failure

mattip tracker at bugs.pypy.org
Sun Apr 7 11:49:04 CEST 2013


New submission from mattip <matti.picus at gmail.com>:

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 <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1438>
________________________________________


More information about the pypy-issue mailing list