8000 numpy 2.0: a possible API inconsistency in `numpy.ndarray.astype` (copy semantics) ? · Issue #25925 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content
numpy 2.0: a possible API inconsistency in numpy.ndarray.astype (copy semantics) ? #25925
Closed
@neutrinoceros

Description

@neutrinoceros

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.

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

      0