From a6663d4afc4617c44434012616d9b1b07261de9c Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Fri, 8 Sep 2017 14:17:33 -0700 Subject: [PATCH] Clarify about running interpreters. (#402) --- pep-0554.rst | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pep-0554.rst b/pep-0554.rst index 0e7911084..17c2830c1 100644 --- a/pep-0554.rst +++ b/pep-0554.rst @@ -132,16 +132,20 @@ The module also provides the following classes: is_running(): - Return whether or not the interpreter is currently running. + Return whether or not the interpreter is currently executing code. destroy(): - Finalize and destroy the interpreter. + Finalize and destroy the interpreter. If called on a running + interpreter, RuntimeError will be raised. run(code): Run the provided Python code in the interpreter, in the current - OS thread. Supported code: source text. + OS thread. If the interpreter is already running then raise + RuntimeError. + + Supported code: source text. get_fifo(name):