summaryrefslogtreecommitdiffstats
path: root/Include/pystate.h
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-08-10 22:30:09 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2013-08-10 22:30:09 (GMT)
commit40322e6ad5f705e294ded37fa4a682f065ec80a2 (patch)
treec5062765b70271c1f449ed65758447276a901347 /Include/pystate.h
parent584e815114b3e1862c510df6a2ccc9d9957eedc0 (diff)
downloadcpython-40322e6ad5f705e294ded37fa4a682f065ec80a2.zip
cpython-40322e6ad5f705e294ded37fa4a682f065ec80a2.tar.gz
cpython-40322e6ad5f705e294ded37fa4a682f065ec80a2.tar.bz2
Issue #10241: Clear extension module dict copies at interpreter shutdown.
Patch by Neil Schemenauer, minimally modified. (re-apply after fix for tkinter-related crash)
Diffstat (limited to 'Include/pystate.h')
-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 *);