3.7 has been obsolete for a while, with 3.8 onwards we can use https://peps.python.org/pep-0587/ to set the startup configuration, allowing (finally) for proper configuration of venvs.
From 3.14, we could even use the PyInitConfig mechanism from PEP741, which gives us full control over the initialization. For now, we'll just hardcode the offsets, similar to how we store the offsets in the PyHEAPTYPE struct :/
3.7 has been obsolete for a while, with 3.8 onwards we can use https://peps.python.org/pep-0587/ to set the startup configuration, allowing (finally) for proper configuration of venvs.
From 3.14, we could even use the
PyInitConfigmechanism from PEP741, which gives us full control over the initialization. For now, we'll just hardcode the offsets, similar to how we store the offsets in the PyHEAPTYPE struct :/