diff options
author | Erlend E. Aasland <erlend@python.org> | 2023-08-03 02:00:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-03 00:00:06 +0000 |
commit | 1cd479c6d371605e9689c88ae1789dbcbceb2da0 (patch) | |
tree | 920479f62bc515a3289bc389c9b5ab77730c51c8 /Python/dynamic_annotations.c | |
parent | 017f047183fa33743f7e36c5c360f5c670032be3 (diff) | |
download | cpython-1cd479c6d371605e9689c88ae1789dbcbceb2da0.tar.gz cpython-1cd479c6d371605e9689c88ae1789dbcbceb2da0.zip |
gh-104683: Rework Argument Clinic error handling (#107551)
Introduce ClinicError, and use it in fail(). The CLI runs main(),
catches ClinicError, formats the error message, prints to stderr
and exits with an error.
As a side effect, this refactor greatly improves the accuracy of
reported line numbers in case of error.
Also, adapt the test suite to work with ClinicError.
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to 'Python/dynamic_annotations.c')
0 files changed, 0 insertions, 0 deletions