This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients indygreg, vstinner
Date 2020-04-28.12:46:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1588077971.29.0.472769197418.issue40413@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-04-28 12:46:11vstinnersetrecipients: + vstinner, indygreg
2020-04-28 12:46:11vstinnersetmessageid: <1588077971.29.0.472769197418.issue40413@roundup.psfhosted.org>
2020-04-28 12:46:11vstinnerlinkissue40413 messages
2020-04-28 12:46:11vstinnercreate