[Numpy-svn] [numpy/numpy] 56dde5: BUG: Make attempted attribute/iterator_element del...

GitHub noreply@github....
Thu Feb 16 20:25:33 CST 2012


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 56dde5f10da0fc36624d487df6fd650c92827336
      https://github.com/numpy/numpy/commit/56dde5f10da0fc36624d487df6fd650c92827336
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2012-02-16 (Thu, 16 Feb 2012)

  Changed paths:
    M numpy/core/src/multiarray/descriptor.c
  M numpy/core/src/multiarray/flagsobject.c
  M numpy/core/src/multiarray/getset.c
  M numpy/core/src/multiarray/iterators.c
  M numpy/core/src/multiarray/na_object.c
  M numpy/core/src/multiarray/nditer_pywrap.c

  Log Message:
  -----------
  BUG: Make attempted attribute/iterator_element deletions not segfault.

Attempted attribute deletion raises an Attribute error. Deleting
an iterator index or slice raises a TypeError. This is a change for
nditer, which used to raise ValueError when deletes were attempted.


  Commit: 4ba819a9cb73cc6e55ac3ca4c13190460b145003
      https://github.com/numpy/numpy/commit/4ba819a9cb73cc6e55ac3ca4c13190460b145003
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2012-02-16 (Thu, 16 Feb 2012)

  Changed paths:
    M numpy/core/tests/test_dtype.py
  M numpy/core/tests/test_multiarray.py
  M numpy/core/tests/test_na.py
  M numpy/core/tests/test_nditer.py

  Log Message:
  -----------
  TST: Test attempted deletion of attributes/iterator_elements.

The attributes without getters are also tested. They raise the same
error as the mutable attributes when deletion is attempted but they
are tested separately.


  Commit: b20a013ef99aadb87f7ce21648e1ebbc6623bd49
      https://github.com/numpy/numpy/commit/b20a013ef99aadb87f7ce21648e1ebbc6623bd49
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2012-02-16 (Thu, 16 Feb 2012)

  Changed paths:
    M numpy/core/src/multiarray/descriptor.c
  M numpy/core/src/multiarray/flagsobject.c
  M numpy/core/src/multiarray/getset.c
  M numpy/core/src/multiarray/iterators.c
  M numpy/core/src/multiarray/na_object.c
  M numpy/core/src/multiarray/nditer_pywrap.c
  M numpy/core/tests/test_dtype.py
  M numpy/core/tests/test_multiarray.py
  M numpy/core/tests/test_na.py
  M numpy/core/tests/test_nditer.py

  Log Message:
  -----------
  Merge branch 'fix-attribute-delete'

* fix-attribute-delete:
  TST: Test attempted deletion of attributes/iterator_elements.
  BUG: Make attempted attribute/iterator_element deletions not segfault.


Compare: https://github.com/numpy/numpy/compare/ae3dd33...b20a013


More information about the Numpy-svn mailing list