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:
def p_key(self, key):
if platform.system() == 'Windows':
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.