[Numpy-discussion] Should bool_ subclass int?

Timothy Hochberg tim.hochberg@ieee....
Fri Jul 6 15:13:13 CDT 2007


I'm working on getting some old code working with numpy and I noticed that
bool_ is not a subclass of int. Given that python's bool subclasses into and
that the other scalar types are subclasses of their respective counterparts
it seems at first glance that numpy.bool_ should subclass python's bool,
which in turn subclasses int. Or am I missing something here?


-- 
.  __
.   |-\
.
.  tim.hochberg@ieee.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20070706/a8f1689f/attachment.html 


More information about the Numpy-discussion mailing list