Skip to content

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

@pitrou

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

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions