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 petr.viktorin
Recipients Arfrever, Dormouse759, amaury.forgeotdarc, asvetlov, brett.cannon, eric.snow, eudoxos, gregory.p.smith, ncoghlan, petr.viktorin, pitrou, r.david.murray, twouters, vstinner
Date 2018-03-02.16:21:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1520007671.01.0.467229070634.issue32973@psf.upfronthosting.co.za>
In-reply-to
Content
Well, PEP 489 basically punts this to module authors: generally, C globals are bad, but if you do have global state, please manage it, keeping in mind that multiple module objects can be created from the extension.

That's required to make everything work with subinterpreters.

See: https://www.python.org/dev/peps/pep-0489/#subinterpreters-and-interpreter-reloading

CCing Marcel, who's working on PEP 489-related stuff now.
History
Date User Action Args
2018-03-02 16:21:11petr.viktorinsetrecipients: + petr.viktorin, twouters, brett.cannon, gregory.p.smith, amaury.forgeotdarc, ncoghlan, pitrou, vstinner, Arfrever, r.david.murray, asvetlov, eric.snow, eudoxos, Dormouse759
2018-03-02 16:21:11petr.viktorinsetmessageid: <1520007671.01.0.467229070634.issue32973@psf.upfronthosting.co.za>
2018-03-02 16:21:10petr.viktorinlinkissue32973 messages
2018-03-02 16:21:10petr.viktorincreate