diff options
author | Tyler Reddy <tyler.je.reddy@gmail.com> | 2023-02-23 17:00:43 -0700 |
---|---|---|
committer | Tyler Reddy <tyler.je.reddy@gmail.com> | 2023-02-23 17:32:01 -0700 |
commit | c61900d5675d4a33a893da5c8e343b6c0c1666dd (patch) | |
tree | 1f2303ce262256f8e7b62af07575f016d2c3a1bb /numpy/array_api/_indexing_functions.py | |
parent | 56eee255dba30eeeb084098b37554052c64e84b5 (diff) | |
download | numpy-c61900d5675d4a33a893da5c8e343b6c0c1666dd.tar.gz |
BUG: masked array proper deepcopies
Fixes #22556
Fixes #21022
* add regression test and fix for gh-22556, where
we were relying on the array `copy` arg to deepcopy
a compound object type; I thought about performance issues
here, but if you are already in the land of `object` and
you are explicitly opting in to `deepcopy`, it seems like
performance might be wishful thinking anyway
* add regression test and fix for gh-21022--this one was
weirder but seems possible to sidestep by not trying
to assign a shape of `()` to something that already has
shape `()` and a non-writeable `shape` attribute
Diffstat (limited to 'numpy/array_api/_indexing_functions.py')
0 files changed, 0 insertions, 0 deletions