aboutsummaryrefslogtreecommitdiff
path: root/Include
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-02-10 18:21:34 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2014-02-10 18:21:34 +0200
commit87a5c515d03f3e2215f3da7b90a4b848ac510879 (patch)
tree84a23e66140538f0d8b870379826b809be2c65b7 /Include
parent8f9f0f12e845034080525c6a80d52215533cb2a4 (diff)
downloadcpython3-87a5c515d03f3e2215f3da7b90a4b848ac510879.tar.gz
Issue #19255: The builtins module is restored to initial value before
cleaning other modules. The sys and builtins modules are cleaned last.
Diffstat (limited to 'Include')
-rw-r--r--Include/moduleobject.h1
-rw-r--r--Include/pystate.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/Include/moduleobject.h b/Include/moduleobject.h
index 8013dd9b48..f119364b88 100644
--- a/Include/moduleobject.h
+++ b/Include/moduleobject.h
@@ -25,6 +25,7 @@ PyAPI_FUNC(const char *) PyModule_GetFilename(PyObject *);
PyAPI_FUNC(PyObject *) PyModule_GetFilenameObject(PyObject *);
#ifndef Py_LIMITED_API
PyAPI_FUNC(void) _PyModule_Clear(PyObject *);
+PyAPI_FUNC(void) _PyModule_ClearDict(PyObject *);
#endif
PyAPI_FUNC(struct PyModuleDef*) PyModule_GetDef(PyObject*);
PyAPI_FUNC(void*) PyModule_GetState(PyObject*);
diff --git a/Include/pystate.h b/Include/pystate.h
index 1f3465fdbd..4992c22684 100644
--- a/Include/pystate.h
+++ b/Include/pystate.h
@@ -33,7 +33,6 @@ typedef struct _is {
int codecs_initialized;
int fscodec_initialized;
-
#ifdef HAVE_DLOPEN
int dlopenflags;
#endif
@@ -41,6 +40,7 @@ typedef struct _is {
int tscdump;
#endif
+ PyObject *builtins_copy;
} PyInterpreterState;
#endif