diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2021-11-12 15:45:26 -0600 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2021-11-12 15:45:26 -0600 |
commit | f31c4a66ad27b428b6a20f9fa28c1b33854ea949 (patch) | |
tree | 00fe1a10a557393287d64176c667805ef48dc612 /numpy/array_api/_elementwise_functions.py | |
parent | 84951a63df4dce887f31969e2a109936b368198a (diff) | |
download | numpy-f31c4a66ad27b428b6a20f9fa28c1b33854ea949.tar.gz |
MAINT,BUG: Refactor __array__ and never-copy to move check later
Doing the check before calling `PyArray_FromArrayAttr` means
we look up the attribute twice.
It further fixes two bugs:
1. The reference counting was wrong.
2. In debug mode there was a failure for some deprecation warnings
(probably due to error propagation)
Diffstat (limited to 'numpy/array_api/_elementwise_functions.py')
0 files changed, 0 insertions, 0 deletions