You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The New REPL Command History Does Not Honor Partial Text #120767
Let's say I fire up the REPL and start with the following:
>>>spam=1>>>ham=2>>>eggs=3>>>sp
At that point, I can up-arrow to scroll through my REPL command history. Normally with that partial sp on the line, hitting up-arrow once will immediately present spam = 1. Hitting it again will do nothing (since there are no more matching lines).
With the new REPL, it presents eggs = 3. Hitting it again will present ham = 2, and again it presents spam = 1. I'd rather it keep doing what it did before.
this is not the default behaviour of readline everywhere, I think. I have the same behaviour, but only because I put the following lines into my .inputrc:
Good point. I have the same in my .inputrc. I suppose the operative word there is "search" (rather than "traverse").
Perhaps this issue might be as much a feature request as a bug, e.g. "make the new REPL match readline behavior in this one way". In the end I reported it as a bug because, from a user standpoint, the behavior I was used to went away.
Activity
Merge branch 'main' into pythongh-120767
Merge branch 'main' of https://github.com/python/cpython into pythong…
Merge branch 'main' of https://github.com/python/cpython into pythong…
cfbolz commentedon Jul 30, 2024
this is not the default behaviour of readline everywhere, I think. I have the same behaviour, but only because I put the following lines into my
.inputrc:ericsnowcurrently commentedon Jul 30, 2024
Good point. I have the same in my
.inputrc. I suppose the operative word there is "search" (rather than "traverse").Perhaps this issue might be as much a feature request as a bug, e.g. "make the new REPL match
readlinebehavior in this one way". In the end I reported it as a bug because, from a user standpoint, the behavior I was used to went away.lilydjwg commentedon Dec 23, 2024
I have other things in my
.inputrcand it's not available in new repl too:ambv commentedon Dec 23, 2024
There are no plans to replicate all .inputrc options in the new REPL. You can use the basic REPL if you rely on specific .inputrc customizations.
A4-Tacks commentedon Jan 2, 2025
May I ask how to use basic REPL? on my terminal
Ok
PYTHON_BASIC_REPL=1 python