diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2013-02-18 23:34:01 +0100 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2013-02-25 01:01:32 +0100 |
commit | b343f43eea856bd984a752f288bd148a42a789a1 (patch) | |
tree | f71002aa2fbe00c18f6777fed871ff82e0a75c38 /numpy/oldnumeric/linear_algebra.py | |
parent | 4bf5a3feb00fe1d63e7d8fcf852cbf34e22fd60b (diff) | |
download | numpy-b343f43eea856bd984a752f288bd148a42a789a1.tar.gz |
BUG: Incref items in np.take on error as they are decrefed later
When take fails during copying due to out of bound indices, then the already
copied items will be decref'd on array destruction. To avoid that, as well
as possible overlapping or already initialized object arrays, decref and
incref during the copy operation itself. Note that all basic types but
object use their own fasttake, so this does not change anything for them.
Diffstat (limited to 'numpy/oldnumeric/linear_algebra.py')
0 files changed, 0 insertions, 0 deletions