[Numpy-svn] [numpy/numpy] be59b8: BUG: Fixed downcasting with boolean indexing.

GitHub noreply at github.com
Sat Jul 11 17:37:23 EDT 2015


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: be59b83bd906817e2beee2910f745bdc65a7f347
      https://github.com/numpy/numpy/commit/be59b83bd906817e2beee2910f745bdc65a7f347
  Author: Greg Thomsen <gthomsen at gmail.com>
  Date:   2015-07-11 (Sat, 11 Jul 2015)

  Changed paths:
    M numpy/core/src/multiarray/mapping.c
    M numpy/core/tests/test_indexing.py

  Log Message:
  -----------
  BUG: Fixed downcasting with boolean indexing.

Fixed downcasting complex types to a real type using boolean indices which
previously caused a segfault.  Acquiring the appropriate dtype transfer
function raises a warning that requires holding the GIL, which had been
released in a previous revision.  Now the GIL is held while the transfer
function is acquired.

This fixes issue #5896.


  Commit: 57e6b4b1de8c50641119b3f11ba62e660eece95a
      https://github.com/numpy/numpy/commit/57e6b4b1de8c50641119b3f11ba62e660eece95a
  Author: Jaime <jaime.frio at gmail.com>
  Date:   2015-07-11 (Sat, 11 Jul 2015)

  Changed paths:
    M numpy/core/src/multiarray/mapping.c
    M numpy/core/tests/test_indexing.py

  Log Message:
  -----------
  Merge pull request #6065 from gthomsen/warned-cast-missing-gil

BUG: Fixed downcasting with boolean indexing.


Compare: https://github.com/numpy/numpy/compare/bf0c2d169de7...57e6b4b1de8c


More information about the Numpy-svn mailing list