![](https://secure.gravatar.com/avatar/3038d41ac3d184609bf25797471e76cc.jpg?s=120&d=mm&r=g)
April 29, 2002
6:35 a.m.
Should Numeric.array([0]) test false? This seems counterintuitive, and is not the case for the regular python array module. This recently caused a subtle bug for me when I wanted to find the indices of an array that met a condition. If only the first element met the condition, the result was array([0]) -- a non-empty result that evaluated false. If this is the intended behavior, can someone tell me the reason? thanks, Rick
8329
Age (days ago)
8329
Last active (days ago)
0 comments
1 participants
participants (1)
-
Rick Ree