Author vstinner
Recipients Jim Fasarakis-Hilliard, amaury.forgeotdarc, corona10, eric.snow, isoschiz, kylotan, lukasz.langa, miss-islington, pconnell, phsilva, santoso.wijaya, shihai1991, tlesher, vstinner, ysj.ray
Date 2020-06-09.16:10:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1591719036.04.0.854410061529.issue1635741@roundup.psfhosted.org>
In-reply-to
Content
I wrote PR 20763 to "finalize" static types in Py_Finalize(). It mostly works, but "./Programs/_testembed test_forced_io_encoding" crash. This program calls Py_Initialize() and Py_Finalize() multiple times in a loop.

It doesn't look to be safe to clear static types. Many functions rely on the fact that static types are "always there" and are never finalized. Also, only a few static types are cleared by my PR: many static types are left unchanged. For example, static types of the _io module.

It seems like a safer approach is to continue the work on bpo-40077: "Convert static types to PyType_FromSpec()".
History
Date User Action Args
2020-06-09 16:10:36vstinnersetrecipients: + vstinner, amaury.forgeotdarc, kylotan, tlesher, phsilva, ysj.ray, santoso.wijaya, lukasz.langa, eric.snow, pconnell, isoschiz, Jim Fasarakis-Hilliard, corona10, miss-islington, shihai1991
2020-06-09 16:10:36vstinnersetmessageid: <1591719036.04.0.854410061529.issue1635741@roundup.psfhosted.org>
2020-06-09 16:10:36vstinnerlinkissue1635741 messages
2020-06-09 16:10:35vstinnercreate