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 corona10, erlendaasland, petr.viktorin, phsilva, shihai1991, vstinner
Date 2022-01-20.16:13:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642695181.89.0.0623758589914.issue46417@roundup.psfhosted.org>
In-reply-to
Content
If tomorrow static types are shared between sub-interpreters, it doesn't solve this problem: we still need to release memory allocated by Py_Initialize() in Py_Finalize() when Python is embedded. This issue is a sub-set of the big bpo-1635741 which explains the rationale. Again, this issue is not about sub-interpreters.

> Anyway, for this issue: is there a way to test if the types are correctly reinitialized if there are multiple finalize/init cycles? I worry about introducing more unexpected issues here.

I wasn't sure how to test it. But well, Dong-hee and you asked for tests, so I added tests for my PR ;-)
History
Date User Action Args
2022-01-20 16:13:01vstinnersetrecipients: + vstinner, phsilva, petr.viktorin, corona10, shihai1991, erlendaasland
2022-01-20 16:13:01vstinnersetmessageid: <1642695181.89.0.0623758589914.issue46417@roundup.psfhosted.org>
2022-01-20 16:13:01vstinnerlinkissue46417 messages
2022-01-20 16:13:01vstinnercreate