Skip to content

[Python] Protect PyBuffer and NumPyBuffer destructors against interpreter finalization #49942

Closed

Description

@pitrou

Describe the bug, including details regarding any error messages, version, and platform.

In #38637 we protected the OwnedRef and OwnedRefNoGIL destructors against being called when the Python interpreter is being finalized, but we didn't address other classes with custom destructors, such as PyBuffer and NumPyBuffer.

Component(s)

Python

Activity

  1. self-assigned this
    on May 6, 2026
  2. added a commit that references this issue on May 7, 2026
  3. added this to the 25.0.0 milestone on May 7, 2026
  4. raulcd commented on May 7, 2026

    @raulcd
    Member

    Issue resolved by pull request 49943
    #49943

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions