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 koubaa
Recipients corona10, eric.snow, koubaa, terry.reedy, vstinner
Date 2020-09-10.13:48:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1599745692.52.0.107309146635.issue40600@roundup.psfhosted.org>
In-reply-to
Content
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?
History
Date User Action Args
2020-09-10 13:48:12koubaasetrecipients: + koubaa, terry.reedy, vstinner, eric.snow, corona10
2020-09-10 13:48:12koubaasetmessageid: <1599745692.52.0.107309146635.issue40600@roundup.psfhosted.org>
2020-09-10 13:48:12koubaalinkissue40600 messages
2020-09-10 13:48:12koubaacreate