[New-bugs-announce] [issue15751] Add PyGILState_SwitchInterpreter

Nick Coghlan report at bugs.python.org
Tue Aug 21 07:18:21 CEST 2012


New submission from Nick Coghlan:

Currently, modules that use the PyGILState* APIs cannot be used with mod_wsgi, as mod_wsgi uses the subinterpreter support.

Graham Dumpleton and I spent some time discussing this at PyCon AU 2012, and we believe that the incompatibility can be resolved with a single API in the core: a function that mod_wsgi can call to set the interpreter used by the GIL state APIs to implicitly create new thread states.

This is still only a seed of an idea (and it's entirely possible we've missed something), but it's a place to start in resolving this longstanding incompatibility.

----------
messages: 168742
nosy: ncoghlan
priority: normal
severity: normal
stage: needs patch
status: open
title: Add PyGILState_SwitchInterpreter
type: enhancement
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15751>
_______________________________________


More information about the New-bugs-announce mailing list