[NumPy-Tickets] [NumPy] #1740: __nonzero__ inconsistency
NumPy Trac
numpy-tickets@scipy....
Thu Feb 10 02:43:59 CST 2011
#1740: __nonzero__ inconsistency
--------------------+-------------------------------------------------------
Reporter: pch | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 2.0.0
Component: Other | Version: 1.5.1
Keywords: |
--------------------+-------------------------------------------------------
ndarrays have a behaviour which is not intuitive.
>>> bool((0,)), bool([0]), bool(array([0]))
(True, True, False)
The result should be (True, True, True) imo.
(bool(array(0)) is False as expected)
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1740>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list