-1, for readability.
1's and 0's can be distinguished more easily visually than T's and F's.
Michiel, U Tokyo.
Pearu Peterson wrote:
Considering the number of `-1`s, how about
a=numarray.arange(6, type=numarray.Bool); a[::2] = 0; a
array([F, T, F, T, F, T], type=Bool)
which is short and readable.
Pearu
This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion