Author vstinner
Recipients LewisGaul, eric.snow, maciej.szulik, mdk, nanjekyejoannah, ncoghlan, ned.deily, petr.viktorin, vstinner
Date 2020-10-27.02:51:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1603767107.3.0.991879555936.issue36225@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-10-27 02:51:47vstinnersetrecipients: + vstinner, ncoghlan, ned.deily, petr.viktorin, eric.snow, maciej.szulik, mdk, nanjekyejoannah, LewisGaul
2020-10-27 02:51:47vstinnersetmessageid: <1603767107.3.0.991879555936.issue36225@roundup.psfhosted.org>
2020-10-27 02:51:47vstinnerlinkissue36225 messages
2020-10-27 02:51:46vstinnercreate