summaryrefslogtreecommitdiff
path: root/numpy/array_api/_set_functions.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2021-12-17 13:15:50 -0600
committerSebastian Berg <sebastian@sipsolutions.net>2021-12-17 13:15:50 -0600
commit8e9c01b6436bacd0aa5dfbf3be423fa7b0ad1d1c (patch)
tree3180b73ecc83f1a3f95a3f17c5067888f8f4e2d4 /numpy/array_api/_set_functions.py
parent01079e29caaad17ddf855d125cc4f47f7a1f8203 (diff)
downloadnumpy-8e9c01b6436bacd0aa5dfbf3be423fa7b0ad1d1c.tar.gz
MAINT: Help boost::python libraries at least not crash
This adds an almost random "sanity check" to `PyArray_EquivTypes` for the sole purpose of allowing boost::python compiled libs to _not crash_. boost::python is buggy, it needs to be fixed. This may break them (I am unsure), because some conversions which used to work may fail here (if they worked, they only worked because random type data may have matched up correctly for our scalar types). We could error, or warn or... but I hope boost::python will just fix this soon enough and future us can just delete the whole branch. Replaces gh-20507
Diffstat (limited to 'numpy/array_api/_set_functions.py')
0 files changed, 0 insertions, 0 deletions