code.InteractiveInterpreter.runcode()

InteractiveInterpreter.runcode(code)

Execute a code object. When an exception occurs, showtraceback() is called to display a traceback. All exceptions are caught except SystemExit, which is allowed to propagate.

A note about KeyboardInterrupt: this exception may occur elsewhere in this code, and may not always be caught. The caller should be prepared to deal with it.

doc_python
2016-10-07 17:28:35
Comments
Leave a Comment

Please login to continue.