[Numpy-svn] [numpy/numpy] 799179: BUG: core: PyArray_ObjectToScalar converts True/Fa...

noreply@githu... noreply@githu...
Sat Dec 11 12:37:38 CST 2010

Branch: refs/heads/master
Home:   https://github.com/numpy/numpy

Commit: 799179d1466f274dfef66d6aeea394b2c7cff729
Author: Mark Wiebe <mwwiebe@gmail.com>
Date:   2010-12-08 (Wed, 08 Dec 2010)

Changed paths:
  M numpy/core/src/multiarray/scalarapi.c

Log Message:
BUG: core: PyArray_ObjectToScalar converts True/False to int

In CPython, boolean is a subtype of integer, so the PyInt_Check
was catching booleans as well.

More information about the Numpy-svn mailing list