FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

numpy 2.0: a possible API inconsistency in `numpy.ndarray.astype` (copy semantics) ? · Issue #25925 · numpy/numpy · GitHub

/ numpy Public

numpy 2.0: a possible API inconsistency in numpy.ndarray.astype (copy semantics) ? #25925

Description

As I'm adapting astropy to the new copy semantics from #25168 and #25922, I observe that numpy.ndarray.astype wasn't updated to follow these changes. As a result, it still supports the old semantics where copy=False means "copy only if you must" but never raises an error. Is that intended ?

numpy.astype, introduced in #25079, is also affected by this question.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL