[NumPy-Tickets] [NumPy] #1891: Inconsisitent error when assigning rhs floats to lhs ints.
NumPy Trac
numpy-tickets@scipy....
Sat Jul 2 09:28:45 CDT 2011
#1891: Inconsisitent error when assigning rhs floats to lhs ints.
---------------------+------------------------------------------------------
Reporter: charris | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: Unscheduled
Component: Other | Version: 1.6.0
Keywords: |
---------------------+------------------------------------------------------
Examples
{{{
a = np.zeros(10, dtype=int)
a[[1,4]] = np.array([1.1, 4]) # TypeError
a[1:3] = np.array([1.1, 4]) # Casts to int
a[[1,4]] = [1.1, 4] # Casts to int
}}}
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1891>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list