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: Expose non-blocking callbackAPI in readline module
Type: enhancement Stage: needs patch
Components: Extension Modules Versions: Python 3.4
process
Status: closed Resolution:
Dependencies: Superseder: Export more libreadline API functions
View: 1175004
Assigned To: Nosy List: BreamoreBoy, christian.heimes, martin.panter, ned.deily, strank
Priority: normal Keywords: patch

Created on 2007-06-27 20:37 by strank, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
readline_callback.patch strank, 2007-06-27 20:37 review
Messages (5)
msg52806 - (view) Author: strank (strank) Date: 2007-06-27 20:37
Expose the callback API of GNU readline.

Patch contains changes to readline.c and libreadline.tex,
I did not find a unit-test for readline so there are no tests.

One of the readline functions (callback_read_char) can potentially call abort(). This can happen on the interactive prompt, but I think that this is not a problem, since using this API from the interactive prompt (which itself uses it) does not make sense anyway.

cheers,
stefan
msg116695 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2010-09-17 17:54
Is there anyone who'd like to see this functionality exposed who could review this C code patch?
msg116707 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2010-09-17 18:46
This appears to be a duplicate of Issue1175004; both supply patches to implement readline callbacks.  Suggest that anyone moving forward with this review both patches.
msg203192 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2013-11-17 15:27
Closing as duplicate
msg247842 - (view) Author: Martin Panter (martin.panter) * (Python committer) Date: 2015-08-02 00:47
I don’t think this is a duplicate. The patch here wraps the non-blocking “alternate interface” <https://cnswww.cns.cwru.edu/php/chet/readline/readline.html#SEC41>: rl_callback_read_char() etc. The patch in Issue 1175004 wraps other APIs, including rl_add_defun() <https://cnswww.cns.cwru.edu/php/chet/readline/readline.html#SEC30>. So if someone was interested in pushing this forward, perhaps it could be reopened.
History
Date User Action Args
2022-04-11 14:56:25adminsetgithub: 45135
2015-08-02 00:47:16martin.pantersetnosy: + martin.panter
title: Patch for feat. 1713877 Expose callbackAPI in readline module -> Expose non-blocking callbackAPI in readline module
messages: + msg247842

resolution: duplicate ->
stage: resolved -> needs patch
2013-11-17 15:27:51christian.heimessetstatus: open -> closed

stage: patch review -> resolved
messages: + msg203192
versions: + Python 3.4, - Python 3.2
2010-09-17 18:46:29ned.deilysetnosy: + ned.deily
messages: + msg116707
resolution: duplicate

superseder: Export more libreadline API functions
2010-09-17 17:54:42BreamoreBoysetnosy: + BreamoreBoy
messages: + msg116695
2010-07-10 10:26:25georg.brandllinkissue1713877 superseder
2010-07-10 10:26:25georg.brandlunlinkissue1713877 dependencies
2010-07-10 10:08:43BreamoreBoysetnosy: + christian.heimes

versions: + Python 3.2, - Python 3.1, Python 2.7
2009-04-06 10:30:33ajaksu2settitle: Patch for feat. 713877 Expose callbackAPI in readline module -> Patch for feat. 1713877 Expose callbackAPI in readline module
stage: patch review
type: enhancement
versions: + Python 3.1, Python 2.7, - Python 2.6
2009-04-06 10:30:10ajaksu2linkissue1713877 dependencies
2007-06-27 20:37:52strankcreate