summaryrefslogtreecommitdiff
path: root/numpy/array_api/_array_object.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2020-09-11 11:09:15 -0500
committerSebastian Berg <sebastian@sipsolutions.net>2020-10-22 11:45:14 -0500
commit83b517b84d34f1a847702c3d6d12eddf5643bf33 (patch)
tree8f11138de64983f89973063694438f80a3e67820 /numpy/array_api/_array_object.py
parentd92f151b961ac0a39915a0e7769d6455031e826f (diff)
downloadnumpy-83b517b84d34f1a847702c3d6d12eddf5643bf33.tar.gz
ENH: Allow buffer export and pickling of `np.generic` subclasses
Previously we had code that would allow exporting the buffer, but then fail for any reasonable subclass, because such a subclass should have its own user-dtype. The change is, that now a subclass without its own user-dtype will inherit the correct behaviour directly. This allows pickling of of such user-defined scalars (with user-defined dtype) if no FORMAT was requested in the buffer export. The latter allows the generic pickling code to succeed. Closes gh-17294
Diffstat (limited to 'numpy/array_api/_array_object.py')
0 files changed, 0 insertions, 0 deletions