summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-05-04 20:45:02 +0200
committerAntoine Pitrou <solipsis@pitrou.net>2013-05-04 20:45:02 +0200
commit997a5a58facf01e9fbb430924d43be8b4dca7856 (patch)
treedd634bb3b430a7e825db2966ef89bf82777b3c4c /Python/pythonrun.c
parentb5e2814a6434a4728e070530417efb96833689f3 (diff)
downloadcpython-997a5a58facf01e9fbb430924d43be8b4dca7856.tar.gz
Issue #17408: Avoid using an obsolete instance of the copyreg module when the interpreter is shutdown and then started again.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index ee6071e631..ddda4a4cd0 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -506,9 +506,6 @@ Py_Finalize(void)
/* 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 @@ Py_Finalize(void)
PyFloat_Fini();
PyDict_Fini();
PySlice_Fini();
+ _PyType_Fini();
/* Cleanup Unicode implementation */
_PyUnicode_Fini();