summaryrefslogtreecommitdiff
path: root/numpy/add_newdocs.py
diff options
context:
space:
mode:
authorMark Wiebe <mwwiebe@gmail.com>2011-01-29 21:03:27 -0800
committerMark Wiebe <mwwiebe@gmail.com>2011-01-30 13:45:32 -0800
commitb29d5c36e8b0a62956d5e097b5b7ce73351f7bef (patch)
tree82c77d2da39594d50f33ed730e1100c11d74e95a /numpy/add_newdocs.py
parent08fdf3b8ff613ad51af21e53de915c232bb395e4 (diff)
downloadnumpy-b29d5c36e8b0a62956d5e097b5b7ce73351f7bef.tar.gz
BUG: core: Fix "a[...] += 1" with array scalar 'a'
This was crashing, because it appears Python does this: 1. call the array_subscript to get a[...], then calls inplace add on it 2. call the array_ass_subscript with (a, Ellipsis, a), which for an object array was setting the single element of a to point to itself, and caused crashes. This case is now checked, and success is returned immediately when an array is assigned to itself this way.
Diffstat (limited to 'numpy/add_newdocs.py')
0 files changed, 0 insertions, 0 deletions