Skip to content

gh-158001: Avoid deprecated variable in Py_GETENV() - #158003

Merged
vstinner merged 2 commits into
python:mainfrom
vstinner:py_getenv
Sep 23, 2026
Merged

vstinner merged 2 commits into
python:mainfrom
vstinner:py_getenv

Conversation

@vstinner

@vstinner vstinner commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

No longer use deprecated Py_IgnoreEnvironmentFlag in Py_GETENV(). Instead, use PyConfig.use_environment when Python is initialized.

No longer use deprecated Py_IgnoreEnvironmentFlag in Py_GETENV().
Instead, use PyConfig.use_environment when Python is initialized.
Modify also PySys_SetArgv() to use PyConfig.isolated when Python is
initialized.
@vstinner
vstinner merged commit becfd65 into python:main Sep 23, 2026
52 checks passed
@vstinner
vstinner deleted the py_getenv branch September 23, 2026 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant