[Numpy-discussion] boolean masks & lists

John Hunter jdh2358 at gmail.com
Tue Nov 6 09:31:11 EST 2007


On Nov 6, 2007 8:22 AM, Lisandro Dalcin <dalcinl at 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