correct Numeric behavior?

Emile van Sebille emile at fenx.com
Sun Apr 21 23:13:13 EDT 2002


"Rick Ree" <rick at bioinformatics.org> wrote in message
news:m3hem4si40.fsf at loco.ucdavis.edu...
> The following seems counterintuitive:
>
> >>> import Numeric
> >>> a = Numeric.array([0])
> >>> a
> array([0])
> >>> not a
> 1
> >>> b = Numeric.array([1])
> >>> not b
> 0
>


Oh GREAT!  Another way to test for False!

;-)


--

Emile van Sebille
emile at fenx.com

---------




More information about the Python-list mailing list