[Numpy-discussion] logical masking, wrong length mask
Stéfan van der Walt
Wed May 28 09:39:23 CDT 2008
2008/5/28 John Hunter <firstname.lastname@example.org>:
> I initially thought line 24 below should raise an error, or coerce
> True to 1 and False to 0 and give me either y or y accordingly,
> but neither appear to be happening. Instead, I appear to be getting
This "feature" looks dangerous enough to warrant raising a warning.
Is a good reason
why it works in the first place?
More information about the Numpy-discussion