[issue13376] readline: pre_input_hook not getting called

2016-07-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: The problem with fixing in editline is that Apple ships a copy of editline and that is used when build CPython by default. IMHO it would be acceptable to work around this in the readline extension if that can be done in a clean way. -- _

[issue13376] readline: pre_input_hook not getting called

2016-06-20 Thread Martin Panter
Martin Panter added the comment: Surely this should be fixed in Editline, not Python? -- nosy: +martin.panter ___ Python tracker ___ _

[issue13376] readline: pre_input_hook not getting called

2012-10-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: 1) Issue is still present with libedit on OSX 10.8 2) Libedit on OSX doesn't call rl_pre_input_hook when using the '#if defined(HAVE_RL_CALLBACK) && defined(HAVE_SELECT)' branch in the readline extension (that is, not calling readline(3), but using rl_callbac

[issue13376] readline: pre_input_hook not getting called

2011-11-09 Thread Ned Deily
Ned Deily added the comment: Since you mention 2.7.1, presumably you are using the Apple-suppled Python 2.7.1 in OS X. That Python is not linked with GNU readline, rather the BSD libedit library. As a workaround you could try installing the third-party readline package from PyPI which repla

[issue13376] readline: pre_input_hook not getting called

2011-11-08 Thread Sam Cates
New submission from Sam Cates : 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() read