Message367526
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. |
|
Date |
User |
Action |
Args |
2020-04-28 12:46:11 | vstinner | set | recipients:
+ vstinner, indygreg |
2020-04-28 12:46:11 | vstinner | set | messageid: <1588077971.29.0.472769197418.issue40413@roundup.psfhosted.org> |
2020-04-28 12:46:11 | vstinner | link | issue40413 messages |
2020-04-28 12:46:11 | vstinner | create | |
|