[IPython-dev] History in ipython1
Tue Jul 22 09:36:14 CDT 2008
On Mon, Jul 21, 2008 at 10:47 PM, Gael Varoquaux
> 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
>> <email@example.com> 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
> 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".
It seems this is a frontend-specific issue. A notebook interface would
want to think of history counting forwards in time from 0 whereas a
terminal interface might want to think of history going backwards in
time from 0.
> IPython-dev mailing list
More information about the IPython-dev