You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are several issues with exceptions in the argparse module:
Only error messages for ArgumentError and ArgumentTypeError should be translated. These exceptions are the part of the user interface of the program that uses argparse. Other exceptions indicate logical errors in the program and are purposed for the programmer.
ArgumentError should only be used for command line errors, not for logical errors in the program.
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.
Activity
pythongh-126068: Fix exceptions in the argparse module
gh-126068: Fix exceptions in the argparse module (GH-126069)
serhiy-storchaka commentedon Oct 30, 2024
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.
pythongh-126068: Fix exceptions in the argparse module (pythonGH-126069)
pythongh-126068: Fix exceptions in the argparse module (pythonGH-126069)