-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
Fix exceptions in argparse #126068
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
Comments
serhiy-storchaka
added a commit
to serhiy-storchaka/cpython
that referenced
this issue
Oct 28, 2024
* Only error messages for ArgumentError and ArgumentTypeError are now translated. * ArgumentError is now only used for command line errors, not for logical errors in the program.
serhiy-storchaka
added a commit
that referenced
this issue
Oct 30, 2024
* Only error messages for ArgumentError and ArgumentTypeError are now translated. * ArgumentError is now only used for command line errors, not for logical errors in the program. * TypeError is now raised instead of ValueError for some logical errors.
Even if some of this looks like bugs, I decided to not backport the change, because there is a small chance of user code depending on this. The benefit of making all right is not large, most users will not notice the change. |
picnixz
pushed a commit
to picnixz/cpython
that referenced
this issue
Dec 8, 2024
* Only error messages for ArgumentError and ArgumentTypeError are now translated. * ArgumentError is now only used for command line errors, not for logical errors in the program. * TypeError is now raised instead of ValueError for some logical errors.
ebonnal
pushed a commit
to ebonnal/cpython
that referenced
this issue
Jan 12, 2025
* Only error messages for ArgumentError and ArgumentTypeError are now translated. * ArgumentError is now only used for command line errors, not for logical errors in the program. * TypeError is now raised instead of ValueError for some logical errors.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Bug report
There are several issues with exceptions in the
argparse
module:argparse
. Other exceptions indicate logical errors in the program and are purposed for the programmer.Linked PRs
The text was updated successfully, but these errors were encountered: