diff Python/pythonrun.c @ 83612:8c1385205a35 3.3

Issue #17408: Avoid using an obsolete instance of the copyreg module when the interpreter is shutdown and then started again.
author Antoine Pitrou <solipsis@pitrou.net>
date Sat, 04 May 2013 20:45:02 +0200
parents 68d1ac152b5d
children 7de9852cdc0e 0b34fd75b937
line wrap: on
line diff
--- a/Python/pythonrun.c	Sat May 04 20:18:34 2013 +0200
+++ b/Python/pythonrun.c	Sat May 04 20:45:02 2013 +0200
@@ -506,9 +506,6 @@
     /* Disable signal handling */
     PyOS_FiniInterrupts();
 
-    /* Clear type lookup cache */
-    PyType_ClearCache();
-
     /* Collect garbage.  This may call finalizers; it's nice to call these
      * before all modules are destroyed.
      * XXX If a __del__ or weakref callback is triggered here, and tries to
@@ -614,6 +611,7 @@
     PyFloat_Fini();
     PyDict_Fini();
     PySlice_Fini();
+    _PyType_Fini();
 
     /* Cleanup Unicode implementation */
     _PyUnicode_Fini();