mohamed koubaa <[email protected]> added the comment:
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?
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue40600>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com