summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2020-09-15 12:55:55 -0500
committerSebastian Berg <sebastian@sipsolutions.net>2020-09-15 12:55:55 -0500
commita50d3006b1c0c526dd91ffa6cbe36b1120683b65 (patch)
tree75d7bd442d1da4cdcbce9f11f37ef440852ec5cc /numpy/lib/function_base.py
parentd2b0d56350ab4ec48a19349a4c05cea0e2603b21 (diff)
downloadnumpy-a50d3006b1c0c526dd91ffa6cbe36b1120683b65.tar.gz
BUG: Relax registration of user dtypes with `NPY_ITEM_REFCOUNT`
This also includes `NPY_ITEM_IS_POINTER`. A previous changed raised an error when this happened, but some downstream libraries use it to create a custom dtype with a single object field. It seems acceptable to create such a dtype if (and only if) that dtype hardcodes names and fields at creation time, so this change allows that, but otherwise keeps the error intact. This should work fine, although some care may be required
Diffstat (limited to 'numpy/lib/function_base.py')
0 files changed, 0 insertions, 0 deletions