To make it compatible with sub-interpreters it needs to be allocated on heap rather than static storage. <!-- gh-linked-prs --> ### Linked PRs * gh-101798 <!-- /gh-linked-prs -->
To make it compatible with sub-interpreters it needs to be allocated on heap rather than static storage.
Linked PRs
PyExpat_CAPIcapsule on heap #101798