[Numpy-discussion] Boolean array formatting poll

Colin J. Williams cjw at sympatico.ca
Tue Sep 9 16:31:14 EDT 2003


Vote +1
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).
>
>  
>






More information about the NumPy-Discussion mailing list