summaryrefslogtreecommitdiff
path: root/numpy/oldnumeric/misc.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2013-02-18 23:34:01 +0100
committerSebastian Berg <sebastian@sipsolutions.net>2013-02-25 01:01:32 +0100
commitb343f43eea856bd984a752f288bd148a42a789a1 (patch)
treef71002aa2fbe00c18f6777fed871ff82e0a75c38 /numpy/oldnumeric/misc.py
parent4bf5a3feb00fe1d63e7d8fcf852cbf34e22fd60b (diff)
downloadnumpy-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/misc.py')
0 files changed, 0 insertions, 0 deletions