[New-bugs-announce] [issue4502] Allowing get_pre_input_hook from Readline

Conrad.Irwin report at bugs.python.org
Wed Dec 3 02:49:37 CET 2008


New submission from Conrad.Irwin <conrad.irwin at gmail.com>:

At the moment there is no way of getting the current pre_input_hook out
of the readline module, so applications cannot set_pre_input_hook
without possibly over-writing users settings (or other parts of the
applications settings) I have attached a patch that implements this
functionality.

It is probably not very useful in many situations, but I am now using it
to maintain my normal custom auto-indenting python prompt in a library
that allows me to edit arbitrary strings using readline. A better way to
implement this might be to

----------
components: Library (Lib)
files: readline.c.diff
keywords: patch
messages: 76808
nosy: Conrad.Irwin
severity: normal
status: open
title: Allowing get_pre_input_hook from Readline
versions: Python 2.5
Added file: http://bugs.python.org/file12207/readline.c.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4502>
_______________________________________


More information about the New-bugs-announce mailing list