Message376685
Something like this?
```
static PyObject *def;
PyMODINIT_FUNC
PyInit_mymod(void)
{
if (def == NULL) {
def = PyModuleDef_Init(&mymod);
}
return def;
}
```
Then add a flag to PyModuleDef to indicate it is already exec? |
|
Date |
User |
Action |
Args |
2020-09-10 13:48:12 | koubaa | set | recipients:
+ koubaa, terry.reedy, vstinner, eric.snow, corona10 |
2020-09-10 13:48:12 | koubaa | set | messageid: <1599745692.52.0.107309146635.issue40600@roundup.psfhosted.org> |
2020-09-10 13:48:12 | koubaa | link | issue40600 messages |
2020-09-10 13:48:12 | koubaa | create | |
|