8000 bpo-1635741: Clean sysdict and builtins of interpreter by shihai1991 · Pull Request #21605 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-1635741: Clean sysdict and builtins of interpreter #21605

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 12, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Clean sysdict and builtins of interpreter.
  • Loading branch information
shihai1991 committed Jul 24, 2020
commit 137967a7ef32a902d6b4c9488b39340e9afa5df0
3 changes: 3 additions & 0 deletions Python/pystate.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@ PyInterpreterState_Clear(PyInterpreterState *interp)
}
HEAD_UNLOCK(runtime);

PyDict_Clear(interp->sysdict);
PyDict_Clear(interp->builtins);

Py_CLEAR(interp->audit_hooks);

PyConfig_Clear(&interp->config);
Expand Down
0