Skip to content

DEP: Deprecate intent(inplace) with a VisibleDeprecationWarning due to user-facing change #30809

Open

Description

@seberg

gh-29929 changed intent(inplace) in a user-facing way, because the old way did very bad things with NumPy array internals, meaning that user data could easily be corrupted.

But it was also a possible subtle behavior change, which isn't great either. It would be good to add a VisibleDeprecationWarning on it (it can be around for a long time):

  • For users, it will inform them that behavior may have changed. They should make sure to pass in an array of the correct dtype.
  • For maintainers, it should say that they should (eventually) migrate to intent(in, out).

From the user-point of view, at some point intent(inplace) could just be the same behavior as intent(in, out) (after which the warning could shift to just deprecate intent(inplace) at code generation time).

Activity

  1. added this to the 2.5.0 Release milestone on Feb 9, 2026
  2. abslock128w commented on Feb 10, 2026

    @abslock128w
    Contributor

    Hey I'd like to work on this
    ill add the visible deprecation warning
    to alert the user!
    we shud prolly also update the docs if it already hasnt been....
    Adding a note to the f2py documentation about the deprecation if its gonna stay for long

  3. added a commit that references this issue on Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions