Skip to content

[3.14] gh-153300: Set global configuration variables in PyConfig_Set() (#153301)#153359

Merged
vstinner merged 1 commit into
python:3.14from
vstinner:config_set_global14
Jul 8, 2026
Merged

[3.14] gh-153300: Set global configuration variables in PyConfig_Set() (#153301)#153359
vstinner merged 1 commit into
python:3.14from
vstinner:config_set_global14

Conversation

@vstinner

@vstinner vstinner commented Jul 8, 2026

Copy link
Copy Markdown
Member

PyConfig_Set() now also set global configuration variables. For example, PyConfig_Set("inspect", value) now also sets Py_InspectFlag.

Use PyConfig_Set() in main.c to set the inspect flag. Python code can now see the updated sys.flags.inspect value.

(cherry picked from commit 9fb713f)

…python#153301)

PyConfig_Set() now also set global configuration variables. For
example, PyConfig_Set("inspect", value) now also sets Py_InspectFlag.

Use PyConfig_Set() in main.c to set the inspect flag. Python code can
now see the updated sys.flags.inspect value.

(cherry picked from commit 9fb713f)
@vstinner vstinner merged commit 6241d0d into python:3.14 Jul 8, 2026
49 checks passed
@vstinner vstinner deleted the config_set_global14 branch July 8, 2026 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant