[Numpy-discussion] Boolean array formatting poll

Todd Miller jmiller at stsci.edu
Tue Sep 9 13:25:59 EDT 2003


Now that Python has a bool type, I have received a patch for numarray's
arrayprint module which alters the formatting of Boolean arrays from:

>>>> a=numarray.arange(6, type=numarray.Bool); a[::2] = 0; a
array([0, 1, 0, 1, 0, 1], type=Bool)

to:

>>>> a=numarray.arange(6, type=numarray.Bool); a[::2] = 0; a
array([False, True, False, True, False, True], type=Bool)

Which format do you prefer?   Please vote for or against changing the
format:  +1 (for)  or -1 (against).

-- 
Todd Miller 			jmiller at stsci.edu
STSCI / ESS / SSB





More information about the NumPy-Discussion mailing list