]> 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:43:26 +0000 (08:43 -0700)
committerPablo Galindo <pablogsal@gmail.com>
Sat, 22 Oct 2022 19:55:26 +0000 (20:55 +0100)
commit67f5d24e44cd53f23b814a735718cfca36f553c5
tree2c67f4efd092e584c9120a6ab99b569a27b4d4cf
parent9e008fe3519b6c08edc2f2363bc2eb4a4e044698
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