29 Apr
2002
29 Apr
'02
1:35 p.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
8277
Age (days ago)
8277
Last active (days ago)
0 comments
1 participants
participants (1)
-
Rick Ree