bpo-40600: Disallow loading extension modules load more than once in per interpreter.#23683
bpo-40600: Disallow loading extension modules load more than once in per interpreter.#23683shihai1991 wants to merge 1 commit into
Conversation
…eter. * Add _PyState_AddSingleModule() and _PyState_FindSingleModule() in pystate.c. * Add `Py_MODFLAGS_SINGLE` of module flags
|
@corona10 Hi, Dong-hee Na. Do you mind I copied your testcase |
|
@shihai1991 Thanks! |
vstinner
left a comment
There was a problem hiding this comment.
I'm not 100% sure that we really need this feature: see https://bugs.python.org/issue40600 discussion.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
|
This is solved in a different way in bpo-42639. |
Py_MODFLAGS_SINGLEof module flagsCo-authored-by: Dong-hee Na [email protected]
https://bugs.python.org/issue40600