Message371119
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()". |
|
Date |
User |
Action |
Args |
2020-06-09 16:10:36 | vstinner | set | recipients:
+ 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:36 | vstinner | set | messageid: <1591719036.04.0.854410061529.issue1635741@roundup.psfhosted.org> |
2020-06-09 16:10:36 | vstinner | link | issue1635741 messages |
2020-06-09 16:10:35 | vstinner | create | |
|