In response to the events in which bpython isn't installed/crashed, my previous patch will revert back to ipython (if installed). The attached patch will revert straight into plain python shell, instead of checking for ipython.
Apply, if others think, that's appropriate Thanks, Arun
215,226c215,226 < < try: < import IPython < # following 2 lines fix a problem with IPython; thanks Michael Toomim < if '__builtins__' in _env: < del _env['__builtins__'] < shell = IPython.Shell.IPShell(argv=[], user_ns=_env) < shell.mainloop() < return < except: < logger.warning( < 'import IPython error; use default python shell') --- > else: > try: > import IPython > # following 2 lines fix a problem with IPython; thanks Michael Toomim > if '__builtins__' in _env: > del _env['__builtins__'] > shell = IPython.Shell.IPShell(argv=[], user_ns=_env) > shell.mainloop() > return > except: > logger.warning( > 'import IPython error; use default python shell')

