code.InteractiveConsole.push()

InteractiveConsole.push(line) Push a line of source text to the interpreter. The line should not have a trailing newline; it

2016-10-07 17:28:35
code.InteractiveInterpreter.runcode()

InteractiveInterpreter.runcode(code) Execute a code object. When an exception occurs, showtraceback() is called

2016-10-07 17:28:35
code.compile_command()

code.compile_command(source, filename="", symbol="single") This function is useful for programs that want to emulate Python’s

2016-10-07 17:28:34
code.InteractiveInterpreter.showtraceback()

InteractiveInterpreter.showtraceback() Display the exception that just occurred. We remove the first stack item because it is

2016-10-07 17:28:36
code.InteractiveInterpreter

class code.InteractiveInterpreter(locals=None) This class deals with parsing and interpreter state (the user’s namespace); it

2016-10-07 17:28:35
code.InteractiveConsole.raw_input()

InteractiveConsole.raw_input(prompt="") Write a prompt and read a line. The returned line does not include the trailing newline

2016-10-07 17:28:35
code.InteractiveInterpreter.write()

InteractiveInterpreter.write(data) Write a string to the standard error stream (sys.stderr). Derived classes should

2016-10-07 17:28:36
codeop.compile_command()

codeop.compile_command(source, filename="", symbol="single") Tries to compile source, which should be a string of Python

2016-10-07 17:28:49
code.InteractiveInterpreter.runsource()

InteractiveInterpreter.runsource(source, filename="", symbol="single") Compile and run some source in the interpreter. Arguments

2016-10-07 17:28:36
code.InteractiveInterpreter.showsyntaxerror()

InteractiveInterpreter.showsyntaxerror(filename=None) Display the syntax error that just occurred. This does not display a stack

2016-10-07 17:28:36