[issue40600] Add option to disallow > 1 instance of an extension module
Petr Viktorin
report at bugs.python.org
Tue Dec 15 09:07:33 EST 2020
Petr Viktorin <encukou at gmail.com> added the comment:
Thanks! Indeed, that's an even better solution than I had in mind.
It follows PEP 630 quite nicely: https://www.python.org/dev/peps/pep-0630/#managing-global-state
I will close this issue and PRs.
I don't agree with adding a general API for disallowing multiple modules, but do let me know if you see a need for it again.
----------
resolution: -> not a bug
stage: patch review -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40600>
_______________________________________
More information about the Python-bugs-list
mailing list