@@ -438,27 +438,29 @@ specific to Python::
438438
439439When a Python program starts, it looks exactly like that, with one
440440of each. The process has a single global runtime to manage Python's
441- global resources. Each Python thread has all the state it needs to run
442- Python code (and use any supported C-API) in its OS thread. Depending
443- on the implementation, this probably includes the current exception
444- and the Python call stack.
441+ process- global resources. Each Python thread has all the state it needs
442+ to run Python code (and use any supported C-API) in its OS thread.
443+ Depending on the implementation, this probably includes the current
444+ exception and the Python call stack.
445445
446446In between the global runtime and the thread(s) lies the interpreter.
447- It completely encapsulates all of the non-global runtime state that the
448- interpreter's Python threads share. For example, all its threads share
449- :data: `sys.modules `. When a Python thread is created, it belongs
450- to an interpreter, and likewise when an OS thread is otherwise
451- associated with Python.
447+ It completely encapsulates all of the non-process-global runtime state
448+ that the interpreter's Python threads share. For example, all its
449+ threads share :data: `sys.modules `. When a Python thread is created,
450+ it belongs to an interpreter, and likewise when an OS thread is
451+ otherwise associated with Python.
452+
453+ .. note ::
454+
455+ The interpreter here is not the same as the "bytecode interpreter",
456+ which is what runs in each thread, executing compiled Python code.
452457
453458If the runtime supports using multiple interpreters then each OS thread
454459will have at most one Python thread for each interpreter. However,
455460only one is active in the OS thread at a time. Switching between
456461interpreters means changing the active Python thread.
457462The initial interpreter is known as the "main" interpreter.
458463
459- .. (The interpreter is different from the "bytecode interpreter",
460- of which each thread has one to execute Python code.)
461-
462464Once a program is running, new Python threads can be created using the
463465:mod: `threading ` module (on platforms and Python implementations that
464466support threads). Additional processes can be created using the
0 commit comments