STINNER Victor <vstin...@python.org> added the comment:

I never tried, but I expect that the following pattern is fine:

for (i=0; i<5; i++) {
    Py_Initialize(); Py_RunMain()
}

Maybe Py_RunMain() must fail with a fatal error if it's called when Python is 
not initialized.

Since Py_RunMain() finalizes Python, you cannot call it multiple times without 
calling Py_Initialize() between calls.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40413>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to