]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-122575: gh-142349: fix sys.flags tuple size (it unintentionally increased) (GH...
authorGregory P. Smith <68491+gpshead@users.noreply.github.com>
Sun, 15 Mar 2026 20:30:01 +0000 (13:30 -0700)
committerGitHub <noreply@github.com>
Sun, 15 Mar 2026 20:30:01 +0000 (20:30 +0000)
commit4a71946b8fbc364b894a944dc4fd017ed14692cb
tree892ae6a4ee1f67a160cb41220d8a85b1d2970086
parentec5e3a5a073507089b0b5908a5a298f8845bb2e4
gh-122575: gh-142349: fix sys.flags tuple size (it unintentionally increased) (GH-145988)

the lazy imports PEP initial implementation (3.15 alpha) inadvertently incremented the length of the sys.flags tuple. In a way that did not do anything useful or related to the lazy imports setting (it exposed sys.flags.gil in the tuple). This fixes that to hard code the length to the 3.13 & 3.14 released length of 18 and have our tests and code comments make it clear that we've since stopped making new sys.flags attributes available via sequence index.
Lib/test/test_sys.py
Python/sysmodule.c