Well, If anytime you wish to use the IRB.start like feature of Ruby in Python.
They way to do it is.
They way to do it is.
import code import readline vars = globals() ## important to carry over the methods and variable define in program to shell shell = code.InteractiveConsole(vars) shell.interact()