[Python-checkins] r88016 - python/branches/py3k/Doc/c-api/init.rst
antoine.pitrou
python-checkins at python.org
Sat Jan 15 13:21:53 CET 2011
Author: antoine.pitrou
Date: Sat Jan 15 13:21:53 2011
New Revision: 88016
Log:
Add mention of how to switch interpreters
Modified:
python/branches/py3k/Doc/c-api/init.rst
Modified: python/branches/py3k/Doc/c-api/init.rst
==============================================================================
--- python/branches/py3k/Doc/c-api/init.rst (original)
+++ python/branches/py3k/Doc/c-api/init.rst Sat Jan 15 13:21:53 2011
@@ -782,7 +782,9 @@
While in most uses, you will only embed a single Python interpreter, there
are cases where you need to create several independent interpreters in the
same process and perhaps even in the same thread. Sub-interpreters allow
-you to do that.
+you to do that. You can switch between sub-interpreters using the
+:c:func:`PyThreadState_Swap` function. You can create and destroy them
+using the following functions:
.. c:function:: PyThreadState* Py_NewInterpreter()
More information about the Python-checkins
mailing list