]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-96848: Fix -X int_max_str_digits option parsing (GH-96988)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 26 Sep 2022 15:46:04 +0000 (08:46 -0700)
committerGitHub <noreply@github.com>
Mon, 26 Sep 2022 15:46:04 +0000 (08:46 -0700)
commit00c352404a2f57f16a0b0d02eef5bdf1a1bd169f
tree316654758720062bba56bef086bb13dc100dfa22
parent8bdaf9bf8e39b2ea374ee01a36b3c1bdaed01b23
gh-96848: Fix -X int_max_str_digits option parsing (GH-96988)

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