diff options
author | Mark Wiebe <mwwiebe@gmail.com> | 2011-01-29 21:03:27 -0800 |
---|---|---|
committer | Mark Wiebe <mwwiebe@gmail.com> | 2011-01-30 13:45:32 -0800 |
commit | b29d5c36e8b0a62956d5e097b5b7ce73351f7bef (patch) | |
tree | 82c77d2da39594d50f33ed730e1100c11d74e95a /numpy/add_newdocs.py | |
parent | 08fdf3b8ff613ad51af21e53de915c232bb395e4 (diff) | |
download | numpy-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