[pypy-issue] [issue1389] "copying over different dtypes unsupported", but the dtype is the same

Antonio Cuni tracker at bugs.pypy.org
Fri Feb 8 17:19:49 CET 2013


New submission from Antonio Cuni <anto.cuni at gmail.com>:

>>>> import numpypy
>>>> x = numpypy.array([1.0, 2.0])
>>>> x.dtype
dtype('float64')
>>>> y = numpypy.array(x, 'd')
Traceback (most recent call last):
  File "<console>", line 1, in <module>
NotImplementedError: copying over different dtypes unsupported
>>>> y = numpypy.array(x, numpypy.dtype('d'))

The problem seems to be at line 718 of interp_numarray.py:
            w_object.get_dtype() is not w_dtype

----------
messages: 5264
nosy: pypy-issue
priority: bug
status: unread
title: "copying over different dtypes unsupported", but the dtype is the same

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1389>
________________________________________


More information about the pypy-issue mailing list