[SciPy-dev] array logical ops error?
David M. Cooke
cookedm at physics.mcmaster.ca
Mon Oct 31 13:18:24 EST 2005
On Oct 31, 2005, at 07:37, Alan G Isaac wrote:
> On Mon, 31 Oct 2005, Robert Cimrman apparently wrote:
>
>> is this the expected behaviour?
>> IMHO (b * c) == (b and c), (b + c) == (b or c) should hold...
>>
>
> I expected the Boolean operations to yield
> element-by-element comparisons. What are they?? In
> contrast, the + and * operators give the expected results.
Use & and | instead of 'and' and 'or'.
--
|>|\/|<
/------------------------------------------------------------------\
|David M. Cooke http://arbutus.physics.mcmaster.ca/dmc/
|cookedm at physics.mcmaster.ca
More information about the SciPy-Dev
mailing list