[NumPy-Tickets] [NumPy] #1695: numpy.r_[True, False] is not a boolean array
NumPy Trac
numpy-tickets@scipy....
Mon Dec 6 04:46:30 CST 2010
#1695: numpy.r_[True, False] is not a boolean array
------------------------+---------------------------------------------------
Reporter: O.C. | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 2.0.0
Component: numpy.core | Version: 1.4.1
Keywords: |
------------------------+---------------------------------------------------
Hello,
I observe the following behavior:
{{{
numpy.r_[True, False] -> array([1, 0], dtype=int8)
numpy.r_[True] -> array([ True], dtype=bool)
}}}
I would expect the first line to give a boolean array:
array([ True, False], dtype=bool)
This may be a bug.
--
O.C.
numpy.__version__ = '1.4.1'
_______________________________________________
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1695>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list