diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2021-04-19 19:16:58 -0500 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2021-04-20 17:36:28 -0500 |
commit | bb2a1ad9161838212ac90af4f6d6af430bbab00d (patch) | |
tree | 756a4b81a1feff727353d10fc8043d96c87be9c8 /numpy/array_api/_manipulation_functions.py | |
parent | 120237d2b8f9f35d9fdde0ed3e7f98bff8e4b358 (diff) | |
download | numpy-bb2a1ad9161838212ac90af4f6d6af430bbab00d.tar.gz |
BUG: Initialize the full nditer buffer in case of error
This is necessary because in some rare cases (reductions), we may
not actually use the full buffer. In that case, the cleanup-on-error
code would have to grow smart enough to handle these cases.
It seems much simpler to just always initialize the full buffers, even
if we may not end up using them.
Admittedly, the old logic might have skipped the buffer clearing
(especially the full buffer) in a fair bit of cases, but since
this is only relevant for `object` dtype, I assume this is fine.
Diffstat (limited to 'numpy/array_api/_manipulation_functions.py')
0 files changed, 0 insertions, 0 deletions