def main(): init_readline() try: import fancycompleter print(banner) fancycompleter.interact(persist_history=True) except ImportError: warnings.warn("fancycompleter not installed") interp = code.InteractiveConsole(env) interp.interact(banner)
import fancycompleter fancycompleter.interact()
try: import fancycompleter except ImportError: pass else: fancycompleter.interact()
pass else: def help(*args, **kw): if args and isinstance(args[0], ModuleLoader): args = (loadmodule(args[0]), ) + args[1:] return old_help(*args, **kw) __builtin__.help = help # # Local .pystartup file # import os, __main__ if os.path.isfile('.pystartup'): execfile('.pystartup', __main__.__dict__) if sys.version_info < (3, 0): startup() del startup try: del __file__ except NameError: pass import fancycompleter fancycompleter.interact(persist_history=True)