Clarify about running interpreters. (#402)

This commit is contained in:
Eric Snow 2017-09-08 14:17:33 -07:00 committed by GitHub
parent 77ed1dcc30
commit a6663d4afc
1 changed files with 7 additions and 3 deletions

View File

@ -132,16 +132,20 @@ The module also provides the following classes:
is_running(): is_running():
Return whether or not the interpreter is currently running. Return whether or not the interpreter is currently executing code.
destroy(): destroy():
Finalize and destroy the interpreter. Finalize and destroy the interpreter. If called on a running
interpreter, RuntimeError will be raised.
run(code): run(code):
Run the provided Python code in the interpreter, in the current 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): get_fifo(name):