-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add readline.backend
for the backend readline
uses
#112510
Comments
…12511) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Donghee Na <donghee.na92@gmail.com>
Thank you for adding it! |
…pythonGH-112511) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Donghee Na <donghee.na92@gmail.com>
Could |
I believe Mac is using libedit by default. Unfortunately, this is considered a new feature and I don't think it would be backported to 3.12. |
Thanks, this is good to know at least. |
…pythonGH-112511) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Donghee Na <donghee.na92@gmail.com>
Feature or enhancement
Proposal:
Currently we support two backends with readline: GNU readline and editline. They work in a similar way but have some differences. Notably the way to set
<tab>
as the complete key.The users need to distinguish the backend at run time, and currently the recommended way is:
We have worse checks like
in
site.py
.It would be nice to provide a more official and clean way to check the backend, instead of querying for the docstring for the module. This is also mentioned in #107748 (comment) by @encukou .
In this proposal, a new attribute
backend
is added which could be eitherreadline
oreditline
.Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Linked PRs
readline.backend
for the backend readline uses #112511The text was updated successfully, but these errors were encountered: