[pypy-issue] [issue1069] PyThread_set_key_value and PyThread_delete_key_value missing from cpyext support

Amaury Forgeot d Arc tracker at bugs.pypy.org
Wed Mar 14 21:21:18 CET 2012

Amaury Forgeot d Arc <amauryfa at gmail.com> added the comment:

Sorry, my previous comment is completely wrong: the GIL is not released in C code, except 
by the functions explicitly designed for this.

Instead, the solution is for PyEval_SaveThread() to return the current thread state, and 
have PyThreadState_GET() do the right thing depending on the GIL being current or not.

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list