summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2020-10-07 22:43:26 -0500
committerSebastian Berg <sebastian@sipsolutions.net>2020-10-07 23:11:12 -0500
commit6681c87e08a4e9bbd4d7a2aa7fb49e1f5852e359 (patch)
treec23f1cbe890713b357c0fdd26c219c84f250b89b /numpy/lib/function_base.py
parent980d52eeaf0498f49dfef61f2a6cba6b78100d83 (diff)
downloadnumpy-6681c87e08a4e9bbd4d7a2aa7fb49e1f5852e359.tar.gz
BUG: Fix usertype typenumber during registration
This slightly rearranges the code to ensure that the type number set for a user type is -1 (invalid) if it does not succeed. (This should be unnecessary, but might be relevant in the unlikely event that a usertype does not check the error return correctly.)
Diffstat (limited to 'numpy/lib/function_base.py')
0 files changed, 0 insertions, 0 deletions