On 3 September 2010 15:25, Russ Cox <r...@swtch.com> wrote:
> [...] but you can't use the mouse to edit in an
> interactive python session.  win some, lose some.

to get around this, i start up python with a script, py:

#!/bin/rc
PYTHONSTARTUP=$HOME/lib/pythonstartup
cat | python -i $*

where $HOME/lib/pythonstartup holds this, to stop
the secondary prompt getting in the way after leaving hold
mode:

import sys
sys.ps1 = '> '
sys.ps2 = ''

Reply via email to