Repository navigation
Minor parsing issue with new -X int_max_str_digits option if PYTHONINTMAXSTRDIGITS #96848
Copy link
Copy link
Closed
Closed
Copy link
Labels
3.10 (EOL)end of lifeend of life3.11only security fixesonly security fixes3.12only security fixesonly security fixes3.7 (EOL)end of lifeend of life3.8 (EOL)end of lifeend of life3.9 (EOL)end of lifeend of lifetype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Activity
- addedtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
on Sep 15, 2022 The code was introduced by the issue #95778.
Nice find. "Oops!" We're obviously missing an integration test for this situation. At least this scenario should be uncommon.
- added3.11only security fixesonly security fixes3.10 (EOL)end of lifeend of life3.9 (EOL)end of lifeend of life3.8 (EOL)end of lifeend of life3.7 (EOL)end of lifeend of life3.12only security fixesonly security fixes
on Sep 15, 2022 - added a commit that references this issue
on Sep 26, 2022 - added 4 commits that reference this issue
on Sep 26, 2022 12 remaining items
- added a commit that references this issue
on Mar 26, 2024 - added a commit that references this issue
on Apr 23, 2025 - added a commit that references this issue
on Jul 4, 2025 - added a commit that references this issue
on Aug 12, 2025 - added a commit that references this issue
on Feb 3, 2026
Metadata
Metadata
Assignees
Labels
3.10 (EOL)end of lifeend of life3.11only security fixesonly security fixes3.12only security fixesonly security fixes3.7 (EOL)end of lifeend of life3.8 (EOL)end of lifeend of life3.9 (EOL)end of lifeend of lifetype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
python -X int_max_str_digitscommand is invalid:But if PYTHONINTMAXSTRDIGITS environment variable is defined, the invalid option is no longer rejected:
It's just because the
validvariable in config_init_int_max_str_digits() is not initialized again in the -X option code path, after the env var is parsed.I noticed this minor issue while backporting the change to Python 3.6 in Fedora for Red Hat.
cc @tiran @gpshead