[Numpy-svn] [numpy/numpy] 925454: ENH: Use tp_basicsize, not NPY_SIZEOF_PYARRAYOBJEC...

GitHub noreply at github.com
Sun Feb 10 16:48:22 EST 2013


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 92545427dfebaa680ee0f38649d12c1f1c655a7f
      https://github.com/numpy/numpy/commit/92545427dfebaa680ee0f38649d12c1f1c655a7f
  Author: Bradley M. Froehle <brad.froehle at gmail.com>
  Date:   2013-02-10 (Sun, 10 Feb 2013)

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

  Log Message:
  -----------
  ENH: Use tp_basicsize, not NPY_SIZEOF_PYARRAYOBJECT, for memory allocation.

This change allows C-API level subtypes of PyArray_Type without forcing the
developer to rewrite the tp_alloc function and only change the amount of
memory allocated.


  Commit: 1ee888709af17b20a6ff97c9f6b3562e5ed93b77
      https://github.com/numpy/numpy/commit/1ee888709af17b20a6ff97c9f6b3562e5ed93b77
  Author: njsmith <njs at pobox.com>
  Date:   2013-02-10 (Sun, 10 Feb 2013)

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

  Log Message:
  -----------
  Merge pull request #2975 from bfroehle/tp_alloc

ENH: Use tp_basicsize, not NPY_SIZEOF_PYARRAYOBJECT, for allocation


Compare: https://github.com/numpy/numpy/compare/3f6aaa38d327...1ee888709af1


More information about the Numpy-svn mailing list