Skip to content

BUG: ensure that casting to/from structured is properly checked. - #14044

Merged
charris merged 1 commit into
numpy:maintenance/1.16.xfrom
charris:backport-13648
Jul 17, 2019
Merged

charris merged 1 commit into
numpy:maintenance/1.16.xfrom
charris:backport-13648

Conversation

@charris

@charris charris commented Jul 17, 2019

Copy link
Copy Markdown
Member

Backport of #13648 .

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".

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".
@charris charris added this to the 1.16.5 release milestone Jul 17, 2019
@charris
charris merged commit 2075623 into numpy:maintenance/1.16.x Jul 17, 2019
@charris
charris deleted the backport-13648 branch July 17, 2019 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants