Skip to content

[Python] Adapt to changes in the copy keyword for numpy 2.0+ compatibility #41098

Closed

Description

@jorisvandenbossche

We need to adapt for changes in numpy 2.0 as decribed at https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword and future changes to pass copy=True (numpy/numpy#26208).

It seems we don't have usages of np.array(.., copy=False) in our code base, so we only have to tackle the item about the copy keyword in the __array__ method.

Activity

  1. added this to the 16.0.0 milestone on Apr 9, 2024
  2. changed the title [-][Python] Adapt to changes in the keyword for numpy 2.0+ compatibility[/-] [+][Python] Adapt to changes in the `copy` keyword for numpy 2.0+ compatibility[/+] on Apr 9, 2024
  3. added a commit that references this issue on Apr 15, 2024
  4. pitrou commented on Apr 15, 2024

    @pitrou
    Member

    Issue resolved by pull request 41071
    #41071

  5. added a commit that references this issue on Apr 15, 2024
  6. added a commit that references this issue on May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions