FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-133351: Fix Cmd completion for lines beginning with `! ` by godlygeek · Pull Request #133362 · python/cpython · GitHub

/ cpython Public

gh-133351: Fix Cmd completion for lines beginning with ! - #133362

Closed
godlygeek wants to merge 1 commit into
python:mainfrom
godlygeek:fix_cmd_bang_completion
Closed

gh-133351: Fix Cmd completion for lines beginning with ! #133362
godlygeek wants to merge 1 commit into
python:mainfrom
godlygeek:fix_cmd_bang_completion

Conversation

godlygeek commented May 4, 2025
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

When a line begins with ! and there's no do_shell method defined, parsecmd returns None as the cmd, which incorrectly leads to None being concatenated to complete_ and triggering a TypeError.

Instead, recognize None as a sentinel that means we should call completedefault, as an empty string already is.

When a line begins with `!` and there's no `do_shell` method defined,
`parsecmd` returns `None` as the `cmd`, which incorrectly leads to
`None` being concatenated to `complete_` and triggering a `TypeError`.

Instead, recognize `None` as a sentinel that means we should call
`completedefault`, as an empty string already is.

Copy link
Copy Markdown
Contributor Author

Actually, let me close this and open a new issue for it, since this probably deserves a real news entry unrelated to PDB...

godlygeek closed this May 4, 2025

Copy link
Copy Markdown
Member

You can just change the gh issue number.

Copy link
Copy Markdown
Contributor Author

Too late, I wasn't sure so I opened #133364 😓

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL