code.InteractiveInterpreter.runcode()
  • References/Python/Python/Interpreters

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

2025-01-10 15:47:30
code.compile_command()
  • References/Python/Python/Interpreters

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

2025-01-10 15:47:30
code.InteractiveConsole.push()
  • References/Python/Python/Interpreters

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

2025-01-10 15:47:30
code.InteractiveInterpreter.showtraceback()
  • References/Python/Python/Interpreters

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

2025-01-10 15:47:30
code.InteractiveInterpreter
  • References/Python/Python/Interpreters

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

2025-01-10 15:47:30
code.InteractiveInterpreter.write()
  • References/Python/Python/Interpreters

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

2025-01-10 15:47:30
code.InteractiveConsole.raw_input()
  • References/Python/Python/Interpreters

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

2025-01-10 15:47:30
codeop.Compile
  • References/Python/Python/Interpreters

class codeop.Compile Instances of this class have __call__() methods identical in signature to the built-in function

2025-01-10 15:47:30
code.InteractiveInterpreter.runsource()
  • References/Python/Python/Interpreters

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

2025-01-10 15:47:30
code.interact()
  • References/Python/Python/Interpreters

code.interact(banner=None, readfunc=None, local=None) Convenience function to run a read-eval-print loop. This creates a new

2025-01-10 15:47:30