Message379718
If tomorrow Python allows to run two interpreters in parallel (see bpo-40512: "Meta issue: per-interpreter GIL"), I don't think that it will be safe to execute object finalizers of a subinterpreter from the main interpreter in Py_Finalize().
IMO subinterpreters must be finalized manually by the programmer, since it's too tricky.
The safest option is to display a warning in Py_Finalize() if there are running subinterpreters. |
|
| Date |
User |
Action |
Args |
| 2020-10-27 02:51:47 | vstinner | set | recipients:
+ vstinner, ncoghlan, ned.deily, petr.viktorin, eric.snow, maciej.szulik, mdk, nanjekyejoannah, LewisGaul |
| 2020-10-27 02:51:47 | vstinner | set | messageid: <[email protected]> |
| 2020-10-27 02:51:47 | vstinner | link | issue36225 messages |
| 2020-10-27 02:51:46 | vstinner | create | |
|