code.interact(banner=None, readfunc=None, local=None) Convenience function to run a read-eval-print loop. This creates a new
InteractiveInterpreter.runsource(source, filename="", symbol="single") Compile and run some source in the interpreter. Arguments
InteractiveInterpreter.showsyntaxerror(filename=None) Display the syntax error that just occurred. This does not display a stack
class codeop.CommandCompiler Instances of this class have __call__() methods identical in signature to c
class code.InteractiveConsole(locals=None, filename="") Closely emulate the behavior of the interactive Python interpreter.
InteractiveConsole.interact(banner=None) Closely emulate the interactive Python console. The optional banner argument
Page 2 of 2