[IPython-dev] cpaste and history

Stefan van der Walt stefan at sun.ac.za
Thu Jul 20 07:03:21 EDT 2006


Hi all,

While using cpaste, I noticed that the readline search history does
not reflect the executed code.  I.e., if you do

In [1]: cpaste
Pasting code; enter '--' alone on the line to stop.
:    x = 1
:--
x = 1

and then type

In [2]: x =<up-arrow>

it does not complete.  Rather

In [2]:     x =<up-arrow>

does.  I played around a bit, but couldn't see an obvious way to
retrospectively change the raw_input history.  Does anyone here know
how?

While I see the logic of the current behaviour, I think it might be
more useful to put the dedented commands in the history.

Cheers
Stéfan



More information about the IPython-dev mailing list