This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients christian.heimes, erlendaasland, pablogsal, petr.viktorin, rhettinger, shihai1991, vstinner
Date 2022-01-28.01:52:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> Is the subinterpreters work still on hold pending a PEP?

While sub-interpreters is one motivation to convert static types to heap types, it's not the only one.

IMO it's better to use the "embedded Python" use case to justify these changes, since embedding Python is non controversial and is already widely used.

For me, another motivation (related to embedded Python) is to release all memory in Py_Finalized(): see bpo-1635741. While this main issues is now closed, Python still leaks memory when you import C extensions using static types: see bpo-40077.


Hai Shi proposed to add a PyStructSequence_FromModuleAndDesc() function but right now, I'm not sure which C extension requires to retrieve a module state from a structseq object. Usually, structseq types have no method. So I don't see the need to reopen the issue.

I just wanted to comment this closed issue ;-)
Date User Action Args
2022-01-28 01:52:10vstinnersetrecipients: + vstinner, rhettinger, christian.heimes, petr.viktorin, pablogsal, shihai1991, erlendaasland
2022-01-28 01:52:10vstinnersetmessageid: <>
2022-01-28 01:52:10vstinnerlinkissue45113 messages
2022-01-28 01:52:10vstinnercreate