Skip to content

C API: PyConfig_Set() should update global variables (such as Py_InspectFlag) #153300

Closed

Description

@vstinner

PyConfig_Set() sets PyInterpreterState.config and sys attributes (such as sys.flags), but it doesn't set global variables (such as Py_InspectFlag). It can lead to inconsistencies in C code using these deprecated global variables.

Linked PRs

Activity

  1. added 3 commits that reference this issue on Jul 7, 2026
  2. added 5 commits that reference this issue on Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions