def interact(banner=None, readfunc=None, local=None):
    console = InteractiveConsole(local)
    if readfunc is not None:
        console.raw_input = readfunc
    else:
        try:
            import readline
        except ImportError:
            pass
    console.interact(banner)
Closely emulate the interactive Python interpreter.
dataset/ETHPy150Open babble/babble/include/jython/Lib/code.py/interact