[issue6953] readline documenation needs work

2015-11-25 Thread Hideaki Takahashi
Changes by Hideaki Takahashi : -- nosy: +hideaki_t ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue6953] readline documenation needs work

2015-11-24 Thread Martin Panter
Changes by Martin Panter : -- stage: -> patch review versions: +Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue6953] readline documenation needs work

2015-11-24 Thread Martin Panter
Martin Panter added the comment: This patch addresses the following points: 1: Moved add_history() into new “History file” section with related functions. 2: Documented that remove_ and replace_history_item() are zero-based. 3: Documented that get_history_item() is one-based. 4: Listed the ma

[issue6953] readline documenation needs work

2015-10-09 Thread Gabi Davar
Changes by Gabi Davar : -- nosy: +Gabi.Davar ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue6953] readline documenation needs work

2014-07-04 Thread Andy Maier
Andy Maier added the comment: I would like to revive this issue. >From the discussion, it seems to me that the following changes in the Python >Library documentation would make sense: 1. Move add_history() higher up in the sequence of functions, for example to after write_history_file(). 2.

[issue6953] readline documenation needs work

2010-03-09 Thread stefanholek
stefanholek added the comment: I have read the readline source code, and it does mean just that. :-) Anyway, this does not really apply to the stdlib because unless someone implements 'stifle_history' and friends 'history_base' is going to be 1 at all times. --

[issue6953] readline documenation needs work

2010-03-09 Thread Ronald Oussoren
Ronald Oussoren 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 t

[issue6953] readline documenation needs work

2010-03-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Mar 9, 2010 at 4:24 PM, stefanholek wrote: .. > To be zero-based, get_history_item would need to look like: .. > +       if ((hist_ent = history_get(history_base + idx))) Did you test this with libedit? -- __

[issue6953] readline documenation needs work

2010-03-09 Thread stefanholek
stefanholek added the comment: To be zero-based, get_history_item would need to look like: diff --git a/rl/readline.c b/rl/readline.c index 33e9905..800bc00 100644 --- a/rl/readline.c +++ b/rl/readline.c @@ -559,7 +559,7 @@ get_history_item(PyObject *self, PyObject *args) if (!PyArg_P

[issue6953] readline documenation needs work

2010-03-06 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue6953] readline documenation needs work

2010-03-06 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +Alexander.Belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6953] readline documenation needs work

2009-09-20 Thread Ronald Oussoren
New submission from Ronald Oussoren : The documentation for the readline module is a bit too minimal. 1) function 'add_history' is described at the end of the documentation, not near the other functions for manipulation the history stack. 2) the index for remove_history_item and replace_hist