Petr Viktorin <> added the comment:

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.


CCing Marcel, who's working on PEP 489-related stuff now.

nosy: +Dormouse759

Python tracker <>
Python-bugs-list mailing list

Reply via email to