summaryrefslogtreecommitdiffstats
path: root/Python/pystate.c
diff options
context:
space:
mode:
authorTian Gao <gaogaotiantian@hotmail.com>2024-10-01 17:32:55 (GMT)
committerGitHub <noreply@github.com>2024-10-01 17:32:55 (GMT)
commit5e0abb47886bc665eefdcc19fde985f803e49d4c (patch)
tree87b3c0280ab1fa6991732eb4e0d82238e96620ec /Python/pystate.c
parentb48253852341c01309b0598852841cd89bc28afd (diff)
downloadcpython-5e0abb47886bc665eefdcc19fde985f803e49d4c.zip
cpython-5e0abb47886bc665eefdcc19fde985f803e49d4c.tar.gz
cpython-5e0abb47886bc665eefdcc19fde985f803e49d4c.tar.bz2
gh-116750: Add clear_tool_id function to unregister events and callbacks (#124568)
Diffstat (limited to 'Python/pystate.c')
-rw-r--r--Python/pystate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/pystate.c b/Python/pystate.c
index 9d11e2d..45e79ad 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -654,6 +654,7 @@ init_interpreter(PyInterpreterState *interp,
interp->monitoring_callables[t][e] = NULL;
}
+ interp->monitoring_tool_versions[t] = 0;
}
interp->sys_profile_initialized = false;
interp->sys_trace_initialized = false;