#11997: merge with 3.1.

This commit is contained in:
Ezio Melotti 2011-05-05 14:21:18 +03:00
commit f77b74dd1b
1 changed files with 1 additions and 1 deletions

View File

@ -883,7 +883,7 @@ by such objects may affect the wrong (sub-)interpreter's dictionary of loaded
modules. modules.
Also note that combining this functionality with :c:func:`PyGILState_\*` APIs Also note that combining this functionality with :c:func:`PyGILState_\*` APIs
is delicate, become these APIs assume a bijection between Python thread states is delicate, because these APIs assume a bijection between Python thread states
and OS-level threads, an assumption broken by the presence of sub-interpreters. and OS-level threads, an assumption broken by the presence of sub-interpreters.
It is highly recommended that you don't switch sub-interpreters between a pair It is highly recommended that you don't switch sub-interpreters between a pair
of matching :c:func:`PyGILState_Ensure` and :c:func:`PyGILState_Release` calls. of matching :c:func:`PyGILState_Ensure` and :c:func:`PyGILState_Release` calls.