summaryrefslogtreecommitdiff
path: root/numpy/array_api/_indexing_functions.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastianb@nvidia.com>2023-04-25 12:22:53 +0200
committerSebastian Berg <sebastianb@nvidia.com>2023-04-25 12:39:33 +0200
commit61610e74340a4a22f2782274600ae34bd882b929 (patch)
tree5ed0568467fcdb3ca534b8d58432ec6d6e579bac /numpy/array_api/_indexing_functions.py
parent6f3e1f458e04d13bdd56cff5669f9fd96a25fb66 (diff)
downloadnumpy-61610e74340a4a22f2782274600ae34bd882b929.tar.gz
ENH: Restore TypeError cleanup in array function dispatching
When the dispathcer raises a TypeError and it starts with the dispatchers name (or actually __qualname__ not that it normally matters), then it is nicer for users if we just raise a new error with the public symbol name. Python does not seem to normalize exception and goes down the unicode path, but I assume that e.g. PyPy may not do that. And there might be other weirder reason why we go down the full path. I have manually tested it by forcing Normalization. Closes gh-23029
Diffstat (limited to 'numpy/array_api/_indexing_functions.py')
0 files changed, 0 insertions, 0 deletions