-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
argparse: when wrong choice is selected, the error message prints available choices using repr()
instead of str()
#118839
Labels
type-bug
An unexpected behavior, bug, or error
Comments
rindeal
added a commit
to rindeal/python--cpython--dev-fork
that referenced
this issue
May 9, 2024
Fixes: python#118839 Signed-off-by: Jan Chren (rindeal) <[email protected]>
rindeal
added a commit
to rindeal/python--cpython--dev-fork
that referenced
this issue
Sep 25, 2024
Fixes: python#118839 Signed-off-by: Jan Chren ~rindeal <[email protected]>
rindeal
added a commit
to rindeal/python--cpython--dev-fork
that referenced
this issue
Sep 25, 2024
Fixes: python#118839 Signed-off-by: Jan Chren ~rindeal <[email protected]>
rindeal
added a commit
to rindeal/python--cpython--dev-fork
that referenced
this issue
Sep 25, 2024
Fixes: python#118839 Signed-off-by: Jan Chren ~rindeal <[email protected]>
rindeal
added a commit
to rindeal/python--cpython--dev-fork
that referenced
this issue
Sep 25, 2024
Fixes: python#118839 Signed-off-by: Jan Chren ~rindeal <[email protected]>
rindeal
added a commit
to rindeal/python--cpython--dev-fork
that referenced
this issue
Sep 25, 2024
Fixes: python#118839 Signed-off-by: Jan Chren ~rindeal <[email protected]>
This is actually a duplicate of #86357. |
Good find. I've re-linked the PR and I'm closing this in favor of that issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Bug description:
I tried using StrEnum for choices and it printed
choose from <Enum.FOO: 'foo'>, ...
instead ofchoose from foo, ....
.Fix in #117766
CPython versions tested on:
3.12
Operating systems tested on:
Linux
Linked PRs
The text was updated successfully, but these errors were encountered: