Skip to content

numexpr still uses NPY_ARRAY_UPDATEIFCOPY #397

@seberg

Description

@seberg

We deprecated NPY_ARRAY_UPDATEIFCOPY a pretty long time ago, but with a Python warning. There is one (probably almost never used) branch that still has an NPY_ARRAY_UPDATEIFCOPY . NumPy main currently removes the symbol entirely, so this will not work. And if compiled on older NumPy versions, it would just do the wrong thing (not copy back).

It is in an n_inputs == 0 branch, is that branch meaningless enough, or should we fix this here, and delay the deprecation for one release in NumPy for the sake of numexpr?

Here is the code:

a = (PyArrayObject *)PyArray_FromArray(operands[0], dtypes[0],

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions