Hi All, After the release of Numpy 1.8.0 there will be a point release of the long term stable branch, Numpy 1.7.2. There have been some 86 non-merge commits since 1.7.1 was released, see the attached list. If anyone thinks something is missing and needs a backport, please reply on the list.
Chuck
commit c5d83e206617f79e576fc3214cb8fd67d11ca85a Author: Christoph Dann <[email protected]> Date: Wed Oct 16 15:17:58 2013 -0400 added spaces to literal string concats literal string concatination without spaces not allowed in C++11 anymore commit 0093c8864c43397d918e1ef64782f89bd6aec5ee Author: cgohlke <[email protected]> Date: Tue Oct 15 14:17:40 2013 -0700 BUG: close file-like objects returned by urlopen Fix `ResourceWarning: unclosed file` on Python 3 commit bf4c6b2ec0191b9c2ae1129edccb8904a4621d9d Author: Marten van Kerkwijk <[email protected]> Date: Sat Oct 12 19:50:43 2013 -0400 Small corrections to tests commit 1b283cf0eae908138daa34b5777784cac64cb115 Author: Marten van Kerkwijk <[email protected]> Date: Sat Oct 12 16:06:14 2013 -0400 Add test cases to ensure NotImplemented is passed on commit 72bb6ad851f60ace43ea2470c942e015e4db3231 Author: Marten van Kerkwijk <[email protected]> Date: Sat Oct 12 12:11:37 2013 -0400 Ensure NotImplemented is passed on in MaskedArray ufunc's commit 4a4e97b745d2fe6412c3c045b5e0d8fa64440921 Author: Julian Taylor <[email protected]> Date: Sat Oct 12 14:06:16 2013 +0200 BUG: Disable check for oldstyle classes in python3 backport of #3885 commit d69cd4e01a41d5e8e1615723df728a054eaff24a Author: Charles Harris <[email protected]> Date: Sun Oct 6 10:32:55 2013 -0600 BUG: Include sunmath.h in npy_math.h when __SUNPRO_CC defined. The include is needed for isinf. commit 92adb806f705fed63ba20e0bc5f67fa2f7d500a3 Author: Ralf Gommers <[email protected]> Date: Sun May 19 22:15:09 2013 +0200 BLD: fix setuptools-specific easy_install issue. Closes gh-3160. An error is raised by setuptools when trying to write to /dev/null. Was fixed in distribute, but not in setuptools. No multi-arch support with plain setuptools should be OK, because multi-arch is Ubuntu specific (at least for now), and they ship distribute. commit 60f2effbe552dcb5aa021d7871cbf645f2331d56 Author: Jason Madden <[email protected]> Date: Sat Sep 28 10:24:37 2013 -0500 Do not fail with NameError if SandboxViolation is raised commit cd3e35bf9f130908bea0bafc0746c82e78e17530 Author: Charles Harris <[email protected]> Date: Sat Sep 28 09:47:26 2013 -0600 TST: Remove Python 2.4 test from travis.yml. The tests always fails due to lack of Python 2.4 pip support in current bots. It would be good to test with 2.4 if we could find a way to work around the pip failure, but without that the test is just noise. commit 21f7a535c8d396e5c8a9f4c3125a9b5c2044251b Author: Charles Harris <[email protected]> Date: Fri Sep 27 17:10:44 2013 -0600 MAINT: Get rid of a Python 3 resource warning. commit 5b5e01b97d083035098c8d4292ddc97f30659ac5 Author: Charles Harris <[email protected]> Date: Fri Sep 27 16:58:44 2013 -0600 BUG: Do not use python with statement. The python with statement is not available in Python 2.4, 2.5. commit 52caf48a1940772b8baeca8d90a41bc7e0a43901 Author: Nathaniel J. Smith <[email protected]> Date: Fri Sep 27 20:29:14 2013 +0100 [fix] If we fail to raise an error, at least dump something to the console Conflicts: numpy/core/tests/test_ufunc.py commit 25de8c5d3cff5ba990ff9b47205c74a93fcb14e0 Author: Nathaniel J. Smith <[email protected]> Date: Fri Sep 27 18:12:52 2013 +0100 [fix] Check for errors in PyArray_CanCastTypeto DEPRECATE If a user had set warnings to raise errors, then this DEPRECATE would leave us with an unpropagated exception and cause havoc downstream. Unfortunately there is no way to propagate an exception from here, so we just have to throw it away :-(. But this is still better than the alternative... Conflicts: numpy/core/tests/test_ufunc.py commit a81fd3f471834b4cda31d93515070d6c636e1502 Author: Julian Taylor <[email protected]> Date: Wed Sep 25 23:28:55 2013 +0200 BUG: fix hashing of long integers under python3 python3 long_hash is more complex than int_hash so instead of copying into numpy call it via the Python capi. Same for long long for wich the numpy hash function is not correct with python 2.7 on i386. Will be slower but doesn't need adapting each timy python changes. closes #3793 commit 12498e684c6375e424bc50a43ef0119832f603c8 Author: Christoph Gohlke <[email protected]> Date: Sat Sep 14 11:27:22 2013 -0700 BUG: use correct type for hash values As of Python 3.2 hash values are of type Py_hash_t. Previous versions use C long. commit 1e2f9baa8575e721f4d010086ebe0170487653d0 Author: Julian Taylor <[email protected]> Date: Thu Sep 12 17:42:55 2013 +0200 BUG: f2py, fix decref on wrong object missing brackets causes decref on an wrong object. shows itself as abort with negative refcount in test_callback using python-dbg. commit 9980d0654383abd8be3d0bedaee309061b34d3e2 Author: Christoph Gohlke <[email protected]> Date: Sun Jun 9 12:33:15 2013 -0600 MAINT: use PyOS_snprintf instead of snprintf PyOS_snprintf is portable and more secure than snprintf. commit 8eba2aa1cbfdf927f6332609865adb9e78fc20e3 Author: Pauli Virtanen <[email protected]> Date: Sat Apr 13 16:35:57 2013 +0300 BUG: linalg: fix LAPACK error handling in lapack_litemodule If an exception is pending (raised from xerbla), the routines must return NULL. commit 0090a01579510d01f158bcf8ea5d3f5cbb2d2792 Author: Pauli Virtanen <[email protected]> Date: Sat Apr 13 16:14:04 2013 +0300 BUG: linalg: do not assume that GIL is enabled in xerbla_ With the new ufunc-based linalg, GIL is released in ufuncs, and needs to be reacquired when raising errors in xerbla_. commit dd266a36968a322a57e86f249956e8edd941325d Author: Christoph Gohlke <[email protected]> Date: Sun Sep 8 17:52:03 2013 -0700 TST: add test for Python 3.4 _ast.NameConstant commit 5116a00b08fef7ff1cc156ec64cdfa17b6b404a8 Author: Christoph Gohlke <[email protected]> Date: Sun Sep 8 16:29:30 2013 -0700 ENH: add support for Python 3.4 ast.NameConstant commit 61110399b8868fa36e5d847e4f2bb086796b33fb Author: Warren Weckesser <[email protected]> Date: Tue Jun 4 14:42:05 2013 -0400 TST: linalg: loosen the requirements of some tests in test_blasdot.py. Addresses part of gh-3399. Closes #3656. commit c4452412f6b72ac6227bb24ed1d99da2a3e724a2 Author: Christoph Gohlke <[email protected]> Date: Mon Aug 26 21:41:17 2013 -0700 BLD: restore compatibility with ANSI C commit b8f6adcbac74315b0188c4554527c9a3d82becfb Author: David Cournapeau <[email protected]> Date: Sun Aug 25 12:12:11 2013 +0200 REL: fix version in maintenance branch. commit a204d08b8cc7b8ba4e9e26b70de62326be10b700 Author: Nicolas Scheffer <[email protected]> Date: Mon Nov 12 12:00:28 2012 -0800 ENH: Remove the need for temporary copies in numpy.dot in numpy core, modified the blas function call to handle C and F order arrays without the need for copy. This brings a significant speed up for matrix multiplication Added a full test for matrix multiplication in test_blasdot (cherry picked from commit ea037770e03f23aca1a06274a1a8e8bf0e0e2ee4) commit 73f34e3bd36fc37c11e6ea6776d63501c9d2c3c5 Author: Mark Wiebe <[email protected]> Date: Mon Aug 12 17:56:43 2013 -0700 BUG: Fix additional zero-sized index case for ufunc.reduceat commit 571e28b21a6a0d5fe52a690d95b9270789a98295 Author: Mark Wiebe <[email protected]> Date: Mon Aug 12 16:56:38 2013 -0700 TST: Add test for additional ufunc.reduceat empty parameter case commit 31dd2bbc644e8542c45fbdf737415319903fb50d Author: Mark Wiebe <[email protected]> Date: Thu Jan 17 15:12:26 2013 -0800 TST: Change reduceat empty test to use i4 indices On 32-bit platforms, was failing in casting the test i8 index to i4. It may be desirable to allow this in reduceat, but that change is independent of this pull request. commit ef4b8af9ffc042fe91cdf3db994ad3e44ecc0775 Author: Mark Wiebe <[email protected]> Date: Mon Jan 7 10:57:46 2013 -0800 BUG: Fix ufunc.reduceat regression with empty index (gh-2892) commit 2d0487f93f6c93941b9f6a89b2d0d0c65dd1801f Author: Mark Wiebe <[email protected]> Date: Mon Jan 7 09:04:18 2013 -0800 TST: Add test for reduceat ufunc regression on zero-sized array commit 8ffdb69633a123883c0a6a5570ba853bb4f411bd Author: Mark Wiebe <[email protected]> Date: Mon Jan 7 16:15:57 2013 -0800 BUG: Fix to allow x.fill(tuple) where x is a struct array commit eced0d6c65ae3ab6363e1a32ebe6207df95ebec6 Author: Mark Wiebe <[email protected]> Date: Mon Jan 7 15:58:44 2013 -0800 TST: Test for x.fill(tuple) where x is a struct array commit 271cb700cba71e7de04df3175228939fa23d1df5 Author: Sebastian Berg <[email protected]> Date: Mon Aug 5 19:36:58 2013 +0200 BUG: Boolean assignment allowed writing to 0-sized array This was because of the assumption that broadcasting works if the dimension is not > 1, but correct is != 1. Adepted from a patch provided by prossahl, backports gh-3575 commit 6ec2a54e52097eacbb150d7e9eb6413028e27109 Author: jeromekelleher <[email protected]> Date: Sun Jul 21 20:22:22 2013 +0200 Update halffloat.c Corrected preprocessor form. commit c57c417fd744453bdf8077a04cce580042545347 Author: Félix Hartmann <[email protected]> Date: Wed Jul 3 15:15:55 2013 +0200 TST: add test for negative axis values in np.insert. commit 79b094e851b0cedb7a5731816a16be7c552a9df3 Author: Sebastian Berg <[email protected]> Date: Sun Aug 4 19:30:56 2013 +0200 BUG: Fix np.insert with negative axis. In some cases a negative axis argument to np.insert would result in wrong behaviour due to np.rollaxis, add modulo operation to avoid this (an error is still raised due to arr.shape[axis]). Closes gh-3494 commit 8afdd14d612d98cd0c9360cbdf4f70292a7cf497 Author: Charles Harris <[email protected]> Date: Tue Jul 2 18:30:06 2013 -0600 BUG: Fix failure to return monic polynomials from roots. This bug affected the various polynomial class methods fromroots due to the ability to specify both window and domain. In that circumstance the roots are mapped from the domain to the window by the substitution `x = off + scl*x`. The polynomial that was being generated was monic in the window before substitution, but if scl was not one it was not monic considered as a function of the variable x in the domain. The fix is to divide the generated coefficients by `scl ** deg` so that the scaling of the highest degree term after substitution is canceled. It might be better to make the scaling optional in the future, but this fix makes the result match the documentation. Closes #3467. commit 2d5fd12eb9b145545f0731ac7c5e0d8ea8f2a787 Author: Christoph Gohlke <[email protected]> Date: Tue Jul 2 20:24:13 2013 -0700 BUG: Restore compatibility with ISO C Fixes msvc compile errors commit 854776e16d264a18e41c93b87ce304ff5d061295 Author: Blake Griffith <[email protected]> Date: Mon Jul 1 17:13:40 2013 -0500 BUG: Class should inherit from object. commit f66a4063e077af33d32df782815909d950160070 Author: Frederic <[email protected]> Date: Thu May 23 11:45:40 2013 -0400 code clean up. Remove code that was never executed. @seberg saw this. commit b97f500364d984485200af14332c3b9653c2813b Author: Frederic <[email protected]> Date: Fri May 17 11:47:20 2013 -0400 updated the comment. commit 91cb5e377a95dbd8c63eeb9c04e354fa2621ef3f Author: Frederic <[email protected]> Date: Fri May 17 11:45:16 2013 -0400 use assert function instead of python keyword commit 71858ddf54e9da3f9c19a0ecf506553b757d36d6 Author: Frederic <[email protected]> Date: Thu May 16 16:51:12 2013 -0400 Move computation inside an if to speed it up. commit f77b43a3eb39b34918ef52ae8103dd78d07c7af5 Author: Frederic <[email protected]> Date: Thu May 16 16:38:52 2013 -0400 remove comparison not needed as this is check above and we break in that case. commit 473e3e31413ea80f0c186e345469930fc6dc49b0 Author: Frederic <[email protected]> Date: Thu May 16 15:52:54 2013 -0400 fix comment style. commit df388acd385300a03115721beee5892a703508ad Author: Frederic <[email protected]> Date: Thu May 16 14:49:43 2013 -0400 reorder code to remove not needed computation in some cases. commit 8fb0dedd61eb508c43b96654b865452a6693161f Author: Frederic <[email protected]> Date: Wed May 15 13:00:04 2013 -0400 Add test for the array_priority for comparison function. Conflicts: numpy/core/tests/test_multiarray.py commit 18c4eafcfb979b3661821db17bf7c4e3d8ee3e94 Author: Frederic <[email protected]> Date: Wed May 15 12:59:14 2013 -0400 Commit from @seberg to make comparison use respect __array_priority__ commit e2105b2d3c373bbf1968da1a04acb5aeab986fee Author: Frederic <[email protected]> Date: Wed May 15 11:59:34 2013 -0400 Revert "Make comparison function (gt, ge, ...) respect __array_priority__." This reverts commit aa7a04741146c44ab1735782a89a60b038028bf2. commit 250c4d66dbdddf41070a2b2cfe02e27acff2dec3 Author: Frederic <[email protected]> Date: Fri May 10 16:58:55 2013 -0400 Make comparison function (gt, ge, ...) respect __array_priority__. commit 51ebb86b1e4b361bc8a70f5b2b7818615dc08623 Author: Charles Harris <[email protected]> Date: Fri Jun 21 16:20:04 2013 -0600 BUG: Make np.load transfer file ownership to the returned NpzFile. This assures that when the loaded file is closed it also closes the file descriptor, avoiding a resource warning in Python3. Closes #3457. commit 561c8743472866a3dec6ff34a4b502cc3dc9dc8d Author: Julian Taylor <[email protected]> Date: Tue Jun 25 19:13:38 2013 +0200 BUG: add module extensions to load_library search list on mac, windows and linux (with >= py3.2) shared libraries and loadable module have different extensions, so check both for all platforms. commit ba29f6a27b7c9182348cf903dc6989b8163f190c Author: Julian Taylor <[email protected]> Date: Fri Mar 29 16:40:31 2013 +0100 BUG: hardcode some known shared library extensions the configuration variables are not a reliable mean to get the shared library extension. darwin, windows and debug linux are wrong in these variables. SHLIB_SUFFIX is also wrong as of python 3.3.1 closes #3057 commit de7a8f21ac151bea683ebee3f7c6c2373297218c Author: Julian Taylor <[email protected]> Date: Wed Dec 5 19:57:38 2012 +0100 BUG: add platform specific python include directories to search paths the generic and platform specific path diverge in python3.3 in ubuntu 13.04 commit c065d6003da4584d1f831d85621f463a260a9ce6 Author: Julian Taylor <[email protected]> Date: Fri Dec 14 14:30:05 2012 +0100 BUG: fix a spelling error in mtrand.beta docstring commit 3a587d787b184ff94f970baf6d4b4ee1db9ba96b Author: Julian Taylor <[email protected]> Date: Tue Mar 26 19:35:06 2013 +0100 BUG: fix undefined function and add integer divisions in numarray commit ef4a7461bb42164dd45345302be94f1af739e012 Author: Julian Taylor <[email protected]> Date: Sat May 25 22:37:07 2013 +0200 BUG: set filename to None for memmaps of unnamed files Closes gh-3302 commit d2a4cc79105defc8a5e32aa90da0adca89d21290 Author: Julian Taylor <[email protected]> Date: Mon May 27 20:54:13 2013 +0200 BUG: fix small leak in datetime metadata initialization commit d7a98ece86e52a5f50484df44ab0181fedf8198e Author: Julian Taylor <[email protected]> Date: Tue Jun 11 23:50:05 2013 +0200 BUG: fix non-swapping strided copies in GetStridedCopySwap Fixed PyArray_GetStridedCopySwap{Pair,}Fn returns paths that do not swap the data. It never triggered because the alignment requirement for complex data was too low (4-8 bytes) and always fullfiled by the memory allocator. As this is now fixed it caused failures on sparc with 16 byte long doubles. commit 5e71756fd25199d2db5716b11811ee6f3437ca97 Author: Julian Taylor <[email protected]> Date: Sun May 26 17:08:27 2013 +0200 ENH: improve performance of byte_bounds for continous arrays reduces the memmap slicing performance issue in gh-3364 to only about a 4 times slowdown compared to 10 times. commit f003b08a8be515c14b5ac4e17f0ab8f1b3126bfc Author: Charles Harris <[email protected]> Date: Thu Jun 20 16:49:49 2013 -0600 BUG: Campanion Matrix was scalar, not matrix for degree 1. The companion matrices returned by the various polynomial types was a scalar in the degree one case instead of a 2-D array. Fix that and add a test to check for that result. Closes #3459. commit e41e71be3a5be44da70b9a2cb0151a2f9f935153 Author: Julian Taylor <[email protected]> Date: Wed Jun 19 21:53:57 2013 +0200 BUG: fix uninitialized-use on invalid sort kind orign is unset at that point but used in the fail goto, can probably only be triggered by using the C-api wrong. commit 20cee69c17e48ec9a266f6f59a48e83188b8b163 Author: Andrew Horton <[email protected]> Date: Sun Jun 16 18:48:58 2013 +0100 Call to byte_swap_vector should use dst, not d1, because this is modified by the call to the strided memcpy and will end up pointing after the end of the destination buffer in that case. commit 0a950e6034a0fb77bef61b448b39fb42ff798d73 Author: Eric Firing <[email protected]> Date: Sat Jun 15 15:31:52 2013 -1000 BUG: add __len__ method to ma.mvoid; closes #576 commit 48e2039cf57d737885acfa54af3d032915d2681d Author: Eric Firing <[email protected]> Date: Sat Jun 15 16:47:55 2013 -1000 BUG: np.ma.compress treated inputs in wrong order; closes #2495 commit fe62f174ac89673c20ddaf27fa545c08ac70d74a Author: Eric Firing <[email protected]> Date: Sat Jun 15 21:33:17 2013 -1000 BUG: field assignment in masked array did not reset mask; closes #2403 The previous behavior when setting a field after indexing to select an element was suitable for the hard mask case, but not for the default soft mask. In addition, the _hardmask value was not being set at all in the mvoid instance. With this changeset, the _hardmask is passed in and __setitem__ takes it into account. Conflicts: numpy/ma/core.py commit db3e22900d4392031337f99cbdf1a0c8bd941fcc Author: Warren Weckesser <[email protected]> Date: Sat Jun 15 11:22:05 2013 -0400 BUG: ma: ma.average didn't handle complex arrays correctly (issue gh-2684) commit e82362736eb2380faa866ee2eb80b7e73ccebbf5 Author: Warren Weckesser <[email protected]> Date: Sat Jun 15 01:42:36 2013 -0400 MAINT: ma: clean up ma/test_extras.py: don't use 'import *'; PEP8 whitespace This commit was cherry-picked from 4a7f27601. The test for the new 'invert' option of 'in1d' was removed to resolve the conflict. Conflicts: numpy/ma/tests/test_extras.py commit ef5fa413e984264d5c78b33eae408b00aaa27ab2 Author: bebert218 <[email protected]> Date: Wed May 22 13:58:38 2013 +0900 BUG: The npv function in financial.py was incorrectly implemented. Correct the implementation of the npv function, its documentation, and the mirr function that depends on it. The test_financial.py is also corrected to take into account those modifications The npv function behavior was contrary to what the documentation stated as it summed indexes 1 to M instead of 0 to M-1. The mirr function used a corrective factor to get the correct result in spite of that error so that factor is removed. Closes #649 commit 83e868afd3162c5f5995c3ab1f71023ad6f82de8 Author: mwtoews <[email protected]> Date: Sun May 26 23:28:50 2013 +1200 BUG: Handle a version string from a custom-built mingw64. The custom build compiler "GNU Fortran (rubenvb-4.8.0) 4.8.0" was incorrectly parsed as version '-4.8.0' and the flag "-mno-cygwin" was added to the compilation. See http://cens.ioc.ee/pipermail/f2py-users/2010-October/002092.html. commit d45d4232337acbe5c31589aa7338ab40d51f56f0 Author: Julian Taylor <[email protected]> Date: Tue May 28 23:00:11 2013 +0200 BUG: include mtrand cython files in sdist the files are required to do a full source rebuild. commit 7e588870a5412feb2ace16156c9a93bdbea051cb Author: Edward Catmur <[email protected]> Date: Tue May 7 17:47:38 2013 +0100 TST: add a test for issue #3312 commit 2f1113335f58ab059c68834e3929a673d1e7d57d Author: Edward Catmur <[email protected]> Date: Tue May 7 16:49:39 2013 +0100 BUG: fix potentially infinite recursion in VOID_nonzero. Fixes #3312. commit 29cda37dd553993a80864146b376a7a1fffac995 Author: Charles Harris <[email protected]> Date: Fri Apr 26 09:59:14 2013 -0600 MAINT: Fix tests for 2to3 and Python < 2.6. Use asbytes instead of 'b' and the 'u' string prefix instead of sixu. commit 216ddba3c011e15009071ca49230cfcaeaffbb9d Author: Jay Bourque <[email protected]> Date: Thu Apr 25 17:00:06 2013 -0500 Add tests for strings shorter than 64 characters commit 69e9e6306a1635b41147d3743dac976dc6d4f5cf Author: Jay Bourque <[email protected]> Date: Thu Apr 25 13:38:16 2013 -0500 Add support for unicode strings commit ab3aa117a0e11074c99f3b8fb6297fd71860290c Author: Jay Bourque <[email protected]> Date: Wed Apr 24 21:42:15 2013 -0500 Fix for astype('S') string truncate issue Calling astype('S') for an array of string objects results in a string array where dtype='S64', even if the original string objects are longer than 64 characters. Add call to GetParamsFromObject() to determine maximum string object length, and use that as string dtype size. commit bd869d0e16c96f9cfdbf3db297bbf84737f4b9a6 Author: Han Genuit <[email protected]> Date: Sat Sep 15 17:47:22 2012 +0200 TST: Add test for concatenate with None-axis Conflicts: numpy/core/tests/test_shape_base.py commit f2450236670389bbbf6288bd6b9515d7b6baf3ca Author: Han Genuit <[email protected]> Date: Sat Sep 15 16:48:53 2012 +0200 BUG: Concatenate with axis None should work regardless of matching array shapes commit 8e7c6a77df290742071b6499ceafa9f6a9ded571 Author: Jos de Kloe <[email protected]> Date: Fri Apr 12 12:18:26 2013 +0200 replace exec by eval to ensure the c variable is defined for all relevant python versions commit 971bab3d51726b95f5afe0c22cbbd7983023f626 Author: Alex Ford <[email protected]> Date: Sat Apr 6 11:18:45 2013 -0700 BUG: Backport #3188, Fix numpy.void pickling. During call to PyArray_scalar a PyVoidScalarObject is created, and it's obval field set to a newly allocated block of memory of the correct item size. With a null base member, the subsequent call to copyswap can not determine an item size and returns without copying. Adding direct copy of input data if no base is provided, as no swap is required. Adding regression test for constructor and original pickle repro case. commit dccfdbd1e8ee44925e702d850c3663daaa54d927 Author: Sebastian Berg <[email protected]> Date: Mon Mar 18 15:53:10 2013 +0100 TST: test no reuse of non-existing buffers in nditer This slightly changes the test to cover more cases including the one where buffers are sometimes used and sometimes not. commit 4c2469ab6bb0bbb29e0b21b6f5f1abf53d8968d3 Author: Sebastian Berg <[email protected]> Date: Mon Mar 18 15:44:12 2013 +0100 BUG: no buffer reuse in nditer, if there was no buffer previously If the buffer is used or not can possible change during iteration. In this case, the buffer cannot be reused if it never existed... commit 5c154dfdde7e143a24fa6849cf7a47f4cc2ecf56 Author: Sebastian Berg <[email protected]> Date: Sun Mar 17 16:50:01 2013 +0100 TST: Add (slow) nditer reduce buffer reuse test commit 9899d23f422abb83f84e637400fc2ce23ed0a322 Author: Sebastian Berg <[email protected]> Date: Sun Mar 17 16:04:36 2013 +0100 BUG: Do not reuse nditer buffers when not filled enough. This checks if the previous time around, the buffers were filled with as much data as they would be filled this time around. Since This is difficult for the initial loop before reusing is activated because in that case the buffer may be larger then just the first outer reduce dimension. In that case do not allow reuse unless the index along that dimension was 0. When the inner reduce index is not 0, then also the reusing of the buffer is dangerous.
_______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
