[MATRIX-SIG] umath.logical_blah vs normal python functions.
David Ascher
da@skivs.ski.org
Tue, 18 Nov 1997 10:13:48 -0800 (PST)
> is there any reason for this difference in behaviour? It's unexpected
> (well, it was unexpected by me :)
>
> >>> umath.logical_and(4,5)
> 1
> >>> 4 and 5
> 5
Try:
>>> umath.boolean_and(4,5)
logical_and returns 0 or 1, boolean_and works like Python's 'and'
construct.
--da
_______________
MATRIX-SIG - SIG on Matrix Math for Python
send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
_______________