[Numpy-svn] [numpy/numpy] 8bf9a1: BUG: check if object provides len() before trying ...

GitHub noreply at github.com
Tue Sep 23 17:11:51 EDT 2014


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 8bf9a18f68a36f81bbd27ce52af65ca3cfd217fd
      https://github.com/numpy/numpy/commit/8bf9a18f68a36f81bbd27ce52af65ca3cfd217fd
  Author: Julian Taylor <jtaylor.debian at googlemail.com>
  Date:   2014-09-23 (Tue, 23 Sep 2014)

  Changed paths:
    M numpy/core/src/multiarray/common.c
    M numpy/core/tests/test_multiarray.py

  Log Message:
  -----------
  BUG: check if object provides len() before trying to iterate it

some libraries want object arrays from objects that are iterable but
rely on not providing len() to get the right dtype from numpy.
closes gh-5100


  Commit: 55544881b5784fca7d4e26effd5b89ccc86f9534
      https://github.com/numpy/numpy/commit/55544881b5784fca7d4e26effd5b89ccc86f9534
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2014-09-23 (Tue, 23 Sep 2014)

  Changed paths:
    M numpy/core/src/multiarray/common.c
    M numpy/core/tests/test_multiarray.py

  Log Message:
  -----------
  Merge pull request #5106 from juliantaylor/sequence-fix

BUG: check if object provides len() before trying to iterate it


Compare: https://github.com/numpy/numpy/compare/04d507f7a173...55544881b578


More information about the Numpy-svn mailing list