[issue40600] Add option to disallow > 1 instance of an extension module

STINNER Victor report at bugs.python.org
Tue Dec 8 11:27:02 EST 2020


STINNER Victor <vstinner at python.org> added the comment:

I'm not 100% sure that preventing to create multiple module instances is needed. For the atexit module, another solution is to move the "module state" into the interpreter, as it has been done for other modules like _warnings.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40600>
_______________________________________


More information about the Python-bugs-list mailing list