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 <rep...@bugs.python.org>
<http://bugs.python.org/issue15751>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to