Message376524
What about a new PyModuleDef_Slot function?
```
static int my_can_create(/*need any arg??, InterpreterState, etc?*/) {
if (test_global_condition()) {
return -1; //Don't allow creation
}
return 0; //Allow creation
};
static PyModuleDef_Slot signal_slots[] = {
{Py_mod_exec, my_exec},
{Py_mod_can_create, my_can_create},
{0,0}
};
``` |
|
Date |
User |
Action |
Args |
2020-09-07 19:07:03 | koubaa | set | recipients:
+ koubaa, terry.reedy, vstinner, eric.snow, corona10 |
2020-09-07 19:07:03 | koubaa | set | messageid: <1599505623.9.0.597985807538.issue40600@roundup.psfhosted.org> |
2020-09-07 19:07:03 | koubaa | link | issue40600 messages |
2020-09-07 19:07:03 | koubaa | create | |
|