Ned Deily <n...@python.org> added the comment:

Most likely what is happening is that the two Python instances you are using 
are linked to different versions of the external readline library.  From the 
version information, it's clear that you are using the Python 3.8.0 from the 
python.org macOS installer.  That Python uses the macOS-supplied BSD editline 
(AKA libedit) for readline functionality.  The Python 3.7.3 you have is not 
from python.org and based on the prompt it looks like it was linked with a 
version of GNU readline which probably does bind ^R to the reverse search 
function by default.  As described in the Python Library Reference page for 
readline (https://docs.python.org/3/library/readline.html), both GNU readline 
and BSD editline can be tailored via configuration files; GNU readline uses 
~/.inputrc while BSD editline uses ~/.editrc.

On macOS, the available configuration commands for editline are described in 
the man page for editrc:

man 5 editrc

In particular, you should be able to enable editline's reverse search 
functionality by adding the following line to ~/.editrc:

bind ^R em-inc-search-prev

where ^R is two characters, not the single character CTRL-R.

----------
nosy: +ned.deily
resolution:  -> third party
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38995>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to