[Numpy-discussion] boolean masks & lists

John Hunter jdh2358@gmail....
Tue Nov 6 08:31:11 CST 2007


On Nov 6, 2007 8:22 AM, Lisandro Dalcin <dalcinl@gmail.com> wrote:
> Mmm...
> It looks as it 'mask' is being inernally converted from
> [True, False, False, False, True]
> to
> [1, 0, 0, 0, 1]

Yep, clearly.  The question is: is this the desired behavior because
it leads to a "silent failure" for people who are expecting sequences
of booleans to behave like arrays of booleans.

JDH


More information about the Numpy-discussion mailing list