Use pyrepl+fanycompleter as the default readline for pdb
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 35.9k
- PR merge metrics
- PR metrics pending
Description
Feature or enhancement
Proposal:
Once https://github.com/python/cpython/pull/130473 is merged, we can think of using it also for pdb.
This would enable colored completion from the pdb prompt, like this (for context, pdb++ has been doing this for years)
This raises some minor questions such as whether the (pdb) prompt should be white or magenta.
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs
- gh-141619
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the pyrepl and fanycompleter work referenced in PR 130473, then inspect how pdb selects its readline implementation and handles the (pdb) prompt. The change is done when pdb uses pyrepl+fanycompleter by default and provides colored completion; prompt color choices still need resolution. PR 141619 indicates that work is already underway.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli, devtools
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100