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)

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 )
remote interactive interpreter .