]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.8] gh-96848: Fix -X int_max_str_digits option parsing (GH-96988) (GH-97575)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 4 Oct 2022 18:57:06 +0000 (11:57 -0700)
committerGitHub <noreply@github.com>
Tue, 4 Oct 2022 18:57:06 +0000 (11:57 -0700)
commit18a0cdb2dc86452d8d75aac7e9bb610270979411
tree3dca633e7d6c01972e1365509accf0e182c915bc
parent12c72d684d43bf87e8457fd0190343daf01db23d
[3.8] gh-96848: Fix -X int_max_str_digits option parsing (GH-96988) (GH-97575)

Fix command line parsing: reject "-X int_max_str_digits" option with
no value (invalid) when the PYTHONINTMAXSTRDIGITS environment
variable is set to a valid limit.
(cherry picked from commit 41351662bcd21672d8ccfa62fe44d72027e6bcf8)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_cmd_line.py
Misc/NEWS.d/next/Core and Builtins/2022-09-21-14-38-31.gh-issue-96848.WuoLzU.rst [new file with mode: 0644]
Python/initconfig.c