[Numpy-discussion] "False" and "True" not singletons?

Christopher Barker Chris.Barker@noaa....
Tue Dec 30 16:17:30 CST 2008


Robert Kern wrote:
> Well, True and False are singletons,

I thought so.

> but numpy.any() and numpy.all()
> don't return bools. They return numpy.bool_s.

Is that a numpy scalar type?

This also begs the question: why don't they return regular old True and 
False?

-CHB




-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker@noaa.gov


More information about the Numpy-discussion mailing list