[IPython-dev] History in ipython1

Gael Varoquaux gael.varoquaux@normalesup....
Mon Jul 21 22:47:31 CDT 2008


On Mon, Jul 21, 2008 at 06:32:30PM +0300, Ville M. Vainio wrote:
> On Mon, Jul 21, 2008 at 7:00 AM, Gael Varoquaux
> <gael.varoquaux@normalesup.org> wrote:

> > number of past executions. Of course, we can always fallback on our feet
> > by checking the length of the history, and resetting the cursor to that,
> > but it seems simpler to count from the back. How to people feel about
> > that?

> It would seem simpler to have 0 as the first element, mostly to ensure
> that item number 3 will always be the same item (i.e. stable
> numbering).

Hum, as you load a history, you prepend things to the beginning of the
list, so item number 3 will stop being item number 3. I think of history
as "item 3 lines ago".

Gaël


More information about the IPython-dev mailing list