I have a Python program that needs to embed the Python Interactive Console.
I'm currently using InteractiveConsole from code module:
code.InteractiveConsole().interact()
However if I type exit() in the console, the whole program is exited.
How can I exit the interactive console without exiting the main program?