Skip to content

gh-69605: fix PyREPL completions for import statements with spaces (edge cases) - #162838

Open
loic-simon wants to merge 1 commit into
python:mainfrom
loic-simon:pyrepl-module-completion-fix-space-in-imports-edge-cases
Open

loic-simon wants to merge 1 commit into
python:mainfrom
loic-simon:pyrepl-module-completion-fix-space-in-imports-edge-cases

Conversation

@loic-simon

@loic-simon loic-simon commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up of #148629, as @pablogsal noted in #162046 (comment):

With apkg/foofoo.py, import apkg. foo<Tab> completes to foo. rfind() picks the second occurrence. Can we use the parser's replacement boundary here? This also affects main and 3.15.

I'm not too sure of what the "parser's replacement boundary" is 😅 interested to find out, in the mean time here's a pretty stupid fix that seem to work in all cases!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant