Ronald Oussoren <ronaldousso...@mac.com> added the comment:

Changing get_history_item to be 0-based would be a backward incompatible change.

The point of my report is that the documentation of the readline documentation 
should mention how the APIs actually behave, you currently have to hunt down 
that information in the documentation from libreadline.

Stefan's message does point to a potentional issue though: history_base is  not 
exposed to python code, and hence Python code cannot use the correct offset.  I 
don't understand the documentation for history_get in that same document 
though, it says "get the item at `offset`, starting from `history_base`". I 
don't understand if that means that `offset` must be at least `history_base` or 
something else (and won't read the readline sources to find out).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue6953>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to