This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: extending readline functionality
Type: Stage:
Components: Library (Lib) Versions: Python 2.3
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: skip.montanaro Nosy List: fufsource, skip.montanaro
Priority: normal Keywords: patch

Created on 2003-01-27 16:52 by fufsource, last changed 2022-04-10 16:06 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
python-2.2.2-ext-readline.diff fufsource, 2003-01-27 16:57 python-2.2.2-ext-readline.diff
python-cvs-ext-readline.diff fufsource, 2003-07-01 11:51 the patch against cvs python (1.7.2003)
Messages (5)
msg42544 - (view) Author: Michal Vitecek (fufsource) Date: 2003-01-27 16:52
this patch against vanilla 2.2.2 adds three new functions to module readline:

remove_history(pos) -- remove history entry specified by pos

replace_history_entry(pos, line) -- replace history entry specified by pos with the given line

get_history_buffer_size() -- get current number of history entries

the libreadline.tex is also modified.

thank you for your consideration.
msg42545 - (view) Author: Michal Vitecek (fufsource) Date: 2003-02-11 11:23
Logged In: YES 
user_id=698198

this patch is invalid as no functionality extensions are
allowed in a stable python version.
msg42546 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2003-06-27 18:32
Logged In: YES 
user_id=44345

Michal,  Can you update this patch against the 2.3 (CVS) source?
I'll take a look at it for addition after the 2.3 release.
msg42547 - (view) Author: Michal Vitecek (fufsource) Date: 2003-07-01 11:51
Logged In: YES 
user_id=698198

hello,
attached is a new patch against today's (1.7.2003) cvs of
python.
msg42548 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2004-08-15 17:01
Logged In: YES 
user_id=44345

Sorry, I completely forgot about this.

I checked it in as readline.c 2.73 and libreadline.tex 1.16.  The
only change I made was to change the names to
remove_history_item and replace_history_item to match the
format of get_history_item.
History
Date User Action Args
2022-04-10 16:06:11adminsetgithub: 37843
2003-01-27 16:52:33fufsourcecreate