[NumPy-Tickets] [NumPy] #1277: Constructing real arrays with complex numbers leads to funny errors
NumPy Trac
numpy-tickets@scipy....
Fri Mar 25 04:58:15 CDT 2011
#1277: Constructing real arrays with complex numbers leads to funny errors
-------------------------------+--------------------------------------------
Reporter: AndreasKloeckner | Owner: somebody
Type: defect | Status: closed
Priority: normal | Milestone:
Component: Other | Version: 1.3.0
Resolution: fixed | Keywords:
-------------------------------+--------------------------------------------
Changes (by pv):
* status: reopened => closed
* resolution: => fixed
Comment:
In the current trunk:
{{{
>>> np.array([1j], dtype=numpy.float64)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: can't convert complex to float
}}}
So it seems to be actually fixed, and the error message is more clear than
the previous "setting an array element with a sequence".
If there's something more, please reopen again ;)
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1277#comment:4>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list