[Numpy-discussion] How are Booleans to be handled?

Colin J. Williams cjw at sympatico.ca
Mon Aug 18 16:22:03 CDT 2003


Thanks, I made a guess and chose the wrong one.

This is a lot closer to the optimum storage.

Colin W.
Todd Miller wrote:

>On Mon, 2003-08-18 at 15:44, Colin J. Williams wrote:
>  
>
>>This statement:
>>            z= _n.array([True, False, True, True], type= _nt.BooleanType)
>>    
>>
>
>Use type=_nt.Bool here.  BooleanType is the class of Bool.
>
>Todd
>
>  
>






More information about the Numpy-discussion mailing list