Message376676
| Author |
vstinner |
| Recipients |
corona10, eric.snow, koubaa, terry.reedy, vstinner |
| Date |
2020年09月10日.10:00:11 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1599732012.09.0.864420155588.issue40600@roundup.psfhosted.org> |
| In-reply-to |
| Content |
One option is to get the behavior before multi-phase initialization. We store extensions in a list. Once it's load, it cannot be unloaded before we exit Python. See _PyState_AddModule() and _PyState_AddModule().
Calling PyInit_xxx() the second time would simply return the existing module object.
When we exit Python, the clear and/or free function of the module is called. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2020年09月10日 10:00:12 | vstinner | set | recipients:
+ vstinner, terry.reedy, eric.snow, corona10, koubaa |
| 2020年09月10日 10:00:12 | vstinner | set | messageid: <1599732012.09.0.864420155588.issue40600@roundup.psfhosted.org> |
| 2020年09月10日 10:00:12 | vstinner | link | issue40600 messages |
| 2020年09月10日 10:00:11 | vstinner | create |
|