PyDocs

Nav

Custom Python Interpreters

InteractiveInterpreter

code

class (source)
  • InteractiveInterpreter(locals=None)
Base class for InteractiveConsole.

This class deals with parsing and interpreter state (the user's
namespace); it doesn't deal with input buffering or prompting or
input file naming (the filename is always passed in explicitly).
Members of InteractiveInterpreter

r

runcode
Execute a code object.
runsource
Compile and run some source in the interpreter.

s

showsyntaxerror
Display the syntax error that just occurred.
showtraceback
Display the exception that just occurred.

w

write
Write a string.
0 Examples
No examples for code/InteractiveInterpreter.
See Also
No see-alsos for code/InteractiveInterpreter
0 Notes
No notes for InteractiveInterpreter