[Numpy-discussion] Using logical function on more than 2 arrays, availability of a "between" function ?

Eric Firing efiring@hawaii....
Sun Mar 25 19:01:07 CDT 2012

On 03/25/2012 12:22 PM, Pierre Haessig wrote:
> Hi Eric,
> Thanks for the hints !
> Le 25/03/2012 20:33, Eric Firing a écrit :
>> Using the bitwise operators in place of logical operators is a hack to
>> get around limitations of the language; but, if done carefully, it is a
>> useful one.
> What is the rationale behind not overloading __and__&  other logical
> operations ?
> Is it a requirement that boolean operators should always return *a bool*
> and not an *array of bools* ?


See http://www.python.org/dev/peps/pep-0335/


More information about the NumPy-Discussion mailing list