summaryrefslogtreecommitdiff
path: root/numpy/array_api/_elementwise_functions.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2021-11-12 15:45:26 -0600
committerSebastian Berg <sebastian@sipsolutions.net>2021-11-12 15:45:26 -0600
commitf31c4a66ad27b428b6a20f9fa28c1b33854ea949 (patch)
tree00fe1a10a557393287d64176c667805ef48dc612 /numpy/array_api/_elementwise_functions.py
parent84951a63df4dce887f31969e2a109936b368198a (diff)
downloadnumpy-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