Numeric don't compare arrays correctly

Erik Max Francis max at alcyone.com
Fri Jun 6 21:40:33 EDT 2003


Tim Hochberg wrote:

> An ill considered thought: I wonder if it would be feasible to change
> the definition of "a < b < c" from:
>    (a < b) and (b < c)
> to:
>    (a < b) & (b < c)

How would this help?

> Since "x and y" and "x & y" are equivalent when x, y are in (0,1), ...

There's an obvious difference, which is that `and' does short circuiting
whereas & does not.

-- 
   Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
 __ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
/  \ Whatever it is you came to teach me / I am here to learn it
\__/  India Arie




More information about the Python-list mailing list