[Numpy-svn] [numpy/numpy] 0a08e7: BUG: fix inconsistency with np.array(['']) being t...

GitHub noreply at github.com
Tue Jun 16 03:56:59 EDT 2015


  Branch: refs/heads/auto
  Home:   https://github.com/numpy/numpy
  Commit: 0a08e7e50f5a445e54fd9a888a9d03a2fdeb9e9e
      https://github.com/numpy/numpy/commit/0a08e7e50f5a445e54fd9a888a9d03a2fdeb9e9e
  Author: wim glenn <wim.glenn at melbourneit.com.au>
  Date:   2015-06-15 (Mon, 15 Jun 2015)

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

  Log Message:
  -----------
  BUG: fix inconsistency with np.array(['']) being truthy


  Commit: 8b447baab0932c7bd5cf89aba3e9e2197e4be735
      https://github.com/numpy/numpy/commit/8b447baab0932c7bd5cf89aba3e9e2197e4be735
  Author: wim glenn <wim.glenn at melbourneit.com.au>
  Date:   2015-06-15 (Mon, 15 Jun 2015)

  Changed paths:
    M numpy/core/tests/test_multiarray.py

  Log Message:
  -----------
  grrr python 3.2


  Commit: 3dd9a5dd7e30a05e97b3671976eee87564370ac1
      https://github.com/numpy/numpy/commit/3dd9a5dd7e30a05e97b3671976eee87564370ac1
  Author: wim glenn <wim.glenn at melbourneit.com.au>
  Date:   2015-06-15 (Mon, 15 Jun 2015)

  Changed paths:
    M numpy/core/tests/test_multiarray.py

  Log Message:
  -----------
  tests for removing explicit size check


  Commit: d67dc631694585ca84972d2ba1823dac9ca220e1
      https://github.com/numpy/numpy/commit/d67dc631694585ca84972d2ba1823dac9ca220e1
  Author: wim glenn <wim.glenn at melbourneit.com.au>
  Date:   2015-06-15 (Mon, 15 Jun 2015)

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

  Log Message:
  -----------
  the code changes to make those new tests pass


  Commit: 8749a9a95b0b917dfff3872344204c0040b71cef
      https://github.com/numpy/numpy/commit/8749a9a95b0b917dfff3872344204c0040b71cef
  Author: wim glenn <wim.glenn at melbourneit.com.au>
  Date:   2015-06-15 (Mon, 15 Jun 2015)

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

  Log Message:
  -----------
  whoops dont need that bit anymore


  Commit: 8c86a0a879a9f6d8bc9b225e95512fd7f2fca964
      https://github.com/numpy/numpy/commit/8c86a0a879a9f6d8bc9b225e95512fd7f2fca964
  Author: Homu <homu at barosl.com>
  Date:   2015-06-16 (Tue, 16 Jun 2015)

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

  Log Message:
  -----------
  Auto merge of #5967 - wimglenn:bugfix/empty_string_array, r=seberg

BUG: fix inconsistency with np.array(['']) being truthy

```
a = np.array([0])
b = np.array([None])
c = np.array([''])
d = np.array(['   '])
```

Why should we have this inconsistency:

```
>>> bool(a)
False
>>> bool(b)
False
>>> bool(c)
True
>>> bool(d)
False
```


Compare: https://github.com/numpy/numpy/compare/7e04882ac753...8c86a0a879a9


More information about the Numpy-svn mailing list