]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.7] gh-96848: Fix -X int_max_str_digits option parsing (#96988) (#97576)
authorVictor Stinner <vstinner@python.org>
Wed, 5 Oct 2022 21:55:28 +0000 (23:55 +0200)
committerGitHub <noreply@github.com>
Wed, 5 Oct 2022 21:55:28 +0000 (14:55 -0700)
commit98884f523d783ecd9933c1ca52d80fbbd7d6bdf5
treecdfeaac4fefd2d749aabecc25f1b6e8f962eb38a
parent46796ed391e2e749f19d158429e07ec692526b6d
[3.7] gh-96848: Fix -X int_max_str_digits option parsing (#96988) (#97576)

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)
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]
Modules/main.c