summaryrefslogtreecommitdiff
path: root/numpy/lib/nanfunctions.py
diff options
context:
space:
mode:
authorMarten van Kerkwijk <mhvk@astro.utoronto.ca>2019-05-27 21:40:07 -0400
committerMarten van Kerkwijk <mhvk@astro.utoronto.ca>2019-06-12 14:48:30 -0400
commite12c6bda05c8b8c024f04f2d41416e5e63971b3e (patch)
treea34cb770b014957b80b61e9d8b105382422bdf86 /numpy/lib/nanfunctions.py
parent90ee55557537f5fc2f02cca57f43f8494a5c497d (diff)
downloadnumpy-e12c6bda05c8b8c024f04f2d41416e5e63971b3e.tar.gz
BUG: ensure that casting to/from structured is properly checked.
Allow unsafe casting from a simple data type to a structured one with multiple fields, but only from structured data type with a single field (checked recursively) to a simple data type. For now, continue to allow any structured to structured with casting="unsafe", as the current can_cast implementation does not match that of "astype".
Diffstat (limited to 'numpy/lib/nanfunctions.py')
0 files changed, 0 insertions, 0 deletions