Skip to content
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

Python launcher does not filter when only one runtime is installed #101467

Closed
zooba opened this issue Jan 31, 2023 · 0 comments
Closed

Python launcher does not filter when only one runtime is installed #101467

zooba opened this issue Jan 31, 2023 · 0 comments
Assignees
Labels
3.11 only security fixes 3.12 bugs and security fixes OS-windows

Comments

@zooba
Copy link
Member

zooba commented Jan 31, 2023

If the launcher only finds a single runtime, it skips all filtering, which means if you request a mismatched version you will still get the installed one.

e.g. a user (let's call them "Guido") installs Python 3.11. They then run py -3.12 and instead of suggesting to install 3.12, it launches 3.11!

Unrelated, but discovered at the same time: -3.1 will match -3.11, because it's a blind prefix match. The match should require a separator character.

Linked PRs

@zooba zooba added OS-windows 3.11 only security fixes 3.12 bugs and security fixes labels Jan 31, 2023
@zooba zooba self-assigned this Jan 31, 2023
zooba added a commit to zooba/cpython that referenced this issue Jan 31, 2023
zooba added a commit that referenced this issue Feb 1, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Feb 1, 2023
…when only one runtime is installed (pythonGH-101468)

(cherry picked from commit eda6091)

Co-authored-by: Steve Dower <steve.dower@python.org>
@zooba zooba closed this as completed Feb 1, 2023
miss-islington added a commit that referenced this issue Feb 1, 2023
…nly one runtime is installed (GH-101468)

(cherry picked from commit eda6091)

Co-authored-by: Steve Dower <steve.dower@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.11 only security fixes 3.12 bugs and security fixes OS-windows
Projects
None yet
Development

No branches or pull requests

1 participant