Petr Viktorin <encu...@gmail.com> 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.

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

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

----------
nosy: +Dormouse759

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32973>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to