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.
G
Gregory P. Smith committed
4a71946b8fbc364b894a944dc4fd017ed14692cb
Parent: ec5e3a5
Committed by GitHub <noreply@github.com>
on 3/15/2026, 8:30:01 PM