Kaydet (Commit) 9bf8d1c2 authored tarafından Antoine Pitrou's avatar Antoine Pitrou

Add mention of how to switch interpreters

üst f1dfe735
......@@ -782,7 +782,9 @@ Sub-interpreter support
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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment