diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2020-09-15 12:55:55 -0500 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2020-09-15 12:55:55 -0500 |
commit | a50d3006b1c0c526dd91ffa6cbe36b1120683b65 (patch) | |
tree | 75d7bd442d1da4cdcbce9f11f37ef440852ec5cc /numpy/lib/nanfunctions.py | |
parent | d2b0d56350ab4ec48a19349a4c05cea0e2603b21 (diff) | |
download | numpy-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/nanfunctions.py')
0 files changed, 0 insertions, 0 deletions