summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-08-01 20:07:06 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2013-08-01 20:07:06 (GMT)
commit84f31a567627bc69204caf2d801a63c7f96207eb (patch)
tree9b02a8f58eff611cfd39fd92584d57482b75630a /Include
parenta68cbfa5561434208d7a822128eeabca50bd7a29 (diff)
downloadcpython-84f31a567627bc69204caf2d801a63c7f96207eb.zip
cpython-84f31a567627bc69204caf2d801a63c7f96207eb.tar.gz
cpython-84f31a567627bc69204caf2d801a63c7f96207eb.tar.bz2
Issue #10241: Clear extension module dict copies at interpreter shutdown.
Patch by Neil Schemenauer, minimally modified.
Diffstat (limited to 'Include')
-rw-r--r--Include/pystate.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/pystate.h b/Include/pystate.h
index cd1d776..e41fe4c 100644
--- a/Include/pystate.h
+++ b/Include/pystate.h
@@ -134,6 +134,9 @@ PyAPI_FUNC(int) PyState_AddModule(PyObject*, struct PyModuleDef*);
PyAPI_FUNC(int) PyState_RemoveModule(struct PyModuleDef*);
#endif
PyAPI_FUNC(PyObject*) PyState_FindModule(struct PyModuleDef*);
+#ifndef Py_LIMITED_API
+PyAPI_FUNC(void) _PyState_ClearModules(void);
+#endif
PyAPI_FUNC(PyThreadState *) PyThreadState_New(PyInterpreterState *);
PyAPI_FUNC(PyThreadState *) _PyThreadState_Prealloc(PyInterpreterState *);