A guy named Shironoo found one solution (which I read in english) to a problem I’d been having with bpython over SSH. Namely that using the delete key ruins the world, or at least kills the current line.

My slightly modified (temporary) solution is to make this change:

  • in bpython/cli.py:
    • in def p_key(self, key):
      • replace if platform.system() == 'Windows':
      • with if platform.system() in ('Windows', 'Linux'):

You can find your bpython install with this kinda thing:

python -c 'import bpython, os;print os.path.dirname(bpython.__file__)'

WFM, YMMV. If you somehow find this and it fixes your problem, let me know. Probably I should invest more time and submit a proper fix in a pull request. But in the mean time I’m getting pythonic things done over SSH.