PyDocs

Nav

Concurrent Execution

Interpreter

  • Interpreter(id)
A single Python interpreter.

Attributes:

"id" - the unique process-global ID number for the interpreter
"whence" - indicates where the interpreter was created

If the interpreter wasn't created by this module
then any method that modifies the interpreter will fail,
i.e. .close(), .prepare_main(), .exec(), and .call()
Members of Interpreter

c

call
Call the object in the interpreter with given args/kwargs.
call_in_thread
Return a new thread that calls the object in the interpreter.
close
Finalize and destroy the interpreter.

e

exec
Run the given source code in the interpreter.

i

id
(read-only)
is_running
Return whether or not the identified interpreter is running.

p

prepare_main
Bind the given values into the interpreter's __main__.

w

whence
(read-only)
0 Examples
No examples for concurrent.interpreters/Interpreter.
See Also
No see-alsos for concurrent.interpreters/Interpreter
0 Notes
No notes for Interpreter