[Numpy-discussion] (a and b) != (b and a) ?
Chris Barker
Chris.Barker at noaa.gov
Wed Jun 12 13:29:02 EDT 2002
Reggie Dugard wrote:
> This is not, in fact, a bug although I've fallen prey to the same
> mistake myself. I'm assuming what you really wanted was to use
> logical_and:
> So the "and" is just returning its second argument, since both arguments
> are considered "True" (containing at least 1 "True" element).
I imagine there is a compelling reason that "and" and "or" have not been
overridden like the comparison operators, but it sure would be nice!
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the NumPy-Discussion
mailing list