[NumPy-Tickets] [NumPy] #1608: numpy.sort on x.flat modifies x
NumPy Trac
numpy-tickets@scipy....
Thu Sep 9 20:23:36 CDT 2010
#1608: numpy.sort on x.flat modifies x
---------------------------+------------------------------------------------
Reporter: carlscheffler | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 1.5.1
Component: numpy.core | Version: 1.3.0
Keywords: sort, flat |
---------------------------+------------------------------------------------
Comment(by charris):
I suspect this is related to x.flat being an iterator but I'm not sure
how. There are some other odd effects that can be obtained. But in any
case, the usual array constructor can break down with iterators. We should
either raise an error here or detect the iterator. Note that a lot of the
functions in fromnumeric use the same construction.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1608#comment:3>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list