[Numpy-discussion] logical priority

Fernando Perez Fernando.Perez at colorado.edu
Tue Feb 8 17:18:31 CST 2005


Fernando Perez wrote:

> Now, lists don't actually have this method, so a call to __len__ is made, and 
> any non-empty list is considered true.  The return value is then whatever is 
> on the stack, which will be either be a, or b if a tested false:
                                                             ^^^^^^

That should have read TRUE, of course, for an 'a and b' call.  For 'a or b', 
false is the right word.  Sorry about the confusion.

Cheers,

f




More information about the Numpy-discussion mailing list