New submission from Conrad.Irwin <[EMAIL PROTECTED]>: 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 <[EMAIL PROTECTED]> <http://bugs.python.org/issue4502> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com