This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients corona10, eric.snow, koubaa, petr.viktorin, shihai1991, terry.reedy, vstinner
Date 2020-12-08.15:15:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1607440555.79.0.986839867018.issue40600@roundup.psfhosted.org>
In-reply-to
Content
> static int loaded = 0;

I would like to limit an extension to once instance *per interpreter*.

See the atexit module for an example.
History
Date User Action Args
2020-12-08 15:15:55vstinnersetrecipients: + vstinner, terry.reedy, petr.viktorin, eric.snow, corona10, shihai1991, koubaa
2020-12-08 15:15:55vstinnersetmessageid: <1607440555.79.0.986839867018.issue40600@roundup.psfhosted.org>
2020-12-08 15:15:55vstinnerlinkissue40600 messages
2020-12-08 15:15:55vstinnercreate