Skip to content

BUG: arr.astype(arr.dtype, copy=False) makes a copy anyway on subarray types #13327

Closed

Description

@eric-wieser
dt = np.dtype([('f', (int, 3))])
a = np.zeros(3, dt)
assert a.astype(a.dtype, copy=False).base is not None  # fails

Activity

  1. eric-wieser commented on Apr 14, 2019

    @eric-wieser
    MemberAuthor

    Nevermind, this actually just returns by identity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions