diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-02-10 16:21:34 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-02-10 16:21:34 (GMT) |
commit | 013bb91aa304062bb65fe8951e2d263f2065ee56 (patch) | |
tree | 27febdf4f9bb1022798cdf8f44eef801987064e9 /Include | |
parent | 761412246751bbf32bfa6315a9888d6cbf322ee5 (diff) | |
download | cpython-013bb91aa304062bb65fe8951e2d263f2065ee56.zip cpython-013bb91aa304062bb65fe8951e2d263f2065ee56.tar.gz cpython-013bb91aa304062bb65fe8951e2d263f2065ee56.tar.bz2 |
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.h | 1 | ||||
-rw-r--r-- | Include/pystate.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Include/moduleobject.h b/Include/moduleobject.h index 8013dd9..f119364 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 1f3465f..4992c22 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 |