[issue34309] Embedding Python; Py_Initialize / Py_Finalize cycles

Eric Snow report at bugs.python.org
Wed Aug 1 15:32:57 EDT 2018


Eric Snow <ericsnowcurrently at gmail.com> added the comment:

The matter of unloading extension modules is partly covered in bpo-401713.  However, note that a few things have changed in the last 18 years. :)  I think it would be worth revisiting the decision in that issue at this point.

If that were sorted out would there be other issues to address?

Regardless, If I understood right, your only objective here is to completely reset Python in the current process to the initial state.  You mention "embedded python interpreter", but it sounds more like you mean "embedded python runtime" (particularly since you are using Py_Initialize and Py_Finalize).  Why is completely resetting Python "a strong requirement"?

----------
nosy: +brett.cannon, eric.snow, ncoghlan

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34309>
_______________________________________


More information about the Python-bugs-list mailing list