Issue #19255: The builtins module is restored to initial value before

cleaning other modules.  The sys and builtins modules are cleaned last.
This commit is contained in:
Serhiy Storchaka 2014-02-10 18:21:34 +02:00
parent 8f9f0f12e8
commit 87a5c515d0
7 changed files with 96 additions and 39 deletions

View file

@ -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