[Numpy-discussion] Boolean array formatting poll

Paul Barrett barrett at stsci.edu
Wed Sep 10 05:21:03 CDT 2003


+1 for consistency and clarity.

Todd Miller wrote:
> 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).
> 


-- 
Paul Barrett, PhD      Space Telescope Science Institute
Phone: 410-338-4475    ESS/Science Software Group
FAX:   410-338-4767    Baltimore, MD 21218





More information about the Numpy-discussion mailing list