From: Rick R. <ri...@bi...> - 2002-04-29 18:34:21
|
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 |