[issue13376] readline: pre_input_hook not getting called
Sam Cates
report at bugs.python.org
Wed Nov 9 08:59:15 CET 2011
New submission from Sam Cates <python.org at samcates.com>:
OS: Mac 10.7.2
Python: 2.7.1
Setting a pre input hook in readline has no effect. This simple example illustrates the problem:
#!/usr/bin/python
import readline
def hook():
readline.insert_text(' from pre_input_hook')
readline.redisplay()
readline.set_pre_input_hook(hook)
while True:
line = raw_input('Prompt ("stop" to quit): ')
if line == 'stop':
break
print 'ENTERED: "%s"' % line
The hook never gets called, thus "from pre_input_hook" is never displayed.
----------
assignee: ronaldoussoren
components: Macintosh
messages: 147336
nosy: ronaldoussoren, scates
priority: normal
severity: normal
status: open
title: readline: pre_input_hook not getting called
type: behavior
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13376>
_______________________________________
More information about the Python-bugs-list
mailing list