[Numpy-svn] [numpy/numpy] 76db3f: MAINT: accept NULL in NpyIter_Deallocate and remov...
GitHub
noreply at github.com
Fri Oct 11 12:47:19 EDT 2013
Branch: refs/heads/master
Home: https://github.com/numpy/numpy
Commit: 76db3ffb4b8e8a1031133a9a747310b8639890a0
https://github.com/numpy/numpy/commit/76db3ffb4b8e8a1031133a9a747310b8639890a0
Author: Julian Taylor <jtaylor.debian at googlemail.com>
Date: 2013-10-03 (Thu, 03 Oct 2013)
Changed paths:
M numpy/core/src/multiarray/arrayobject.c
M numpy/core/src/multiarray/datetime.c
M numpy/core/src/multiarray/dtype_transfer.c
M numpy/core/src/multiarray/iterators.c
M numpy/core/src/multiarray/methods.c
M numpy/core/src/multiarray/multiarraymodule.c
M numpy/core/src/multiarray/nditer_constr.c
M numpy/core/src/multiarray/nditer_pywrap.c
M numpy/core/src/umath/ufunc_object.c
M numpy/lib/src/_compiled_base.c
Log Message:
-----------
MAINT: accept NULL in NpyIter_Deallocate and remove redundant NULL checks
Deallocation should just do nothing if provided a NULL pointer nditer
deletion broke this convention.
Removed many redundant NULL checks for various deallocation functions
used in numpy, they all end up in standard C free or PyMem_Free which
are both NULL safe.
Commit: d19d96f1a194706bc2fe9f85f088a73fbdcaa401
https://github.com/numpy/numpy/commit/d19d96f1a194706bc2fe9f85f088a73fbdcaa401
Author: njsmith <njs at pobox.com>
Date: 2013-10-11 (Fri, 11 Oct 2013)
Changed paths:
M numpy/core/src/multiarray/arrayobject.c
M numpy/core/src/multiarray/datetime.c
M numpy/core/src/multiarray/dtype_transfer.c
M numpy/core/src/multiarray/iterators.c
M numpy/core/src/multiarray/methods.c
M numpy/core/src/multiarray/multiarraymodule.c
M numpy/core/src/multiarray/nditer_constr.c
M numpy/core/src/multiarray/nditer_pywrap.c
M numpy/core/src/umath/ufunc_object.c
M numpy/lib/src/_compiled_base.c
Log Message:
-----------
Merge pull request #3862 from juliantaylor/null-free
MAINT: accept NULL in NpyIter_Deallocate and remove redundant NULL checks
Compare: https://github.com/numpy/numpy/compare/deb6b8662560...d19d96f1a194
More information about the Numpy-svn
mailing list