[Numpy-discussion] int is a subtype of bool?

Pauli Virtanen pav@iki...
Wed Feb 9 18:05:44 CST 2011


On Wed, 09 Feb 2011 15:07:01 -0800, Nathaniel Smith wrote:
> This can't possibly be right, can it? Or am I missing something? (It
> certainly doesn't seem to match any documentation that I can find)
> 
>>>> np.issubdtype(int, bool)
> True
>>>> np.__version__
> '1.5.1'

Thanks. It's a bug in issubdtype,

http://projects.scipy.org/numpy/ticket/1739

-- 
Pauli Virtanen



More information about the NumPy-Discussion mailing list