summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-05-04 18:46:19 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2013-05-04 18:46:19 (GMT)
commitdf6931dbbcf3d0a33f5469e63c9944577a7c7382 (patch)
tree20dc1c75735e64dabfe13c3f9eedb22da1a921eb /Python
parent609a56f788293585039e78a108f8c3aff8ac245d (diff)
parent957a23b0883c1d92f4d5c5de2459319615a8ed34 (diff)
downloadcpython-df6931dbbcf3d0a33f5469e63c9944577a7c7382.zip
cpython-df6931dbbcf3d0a33f5469e63c9944577a7c7382.tar.gz
cpython-df6931dbbcf3d0a33f5469e63c9944577a7c7382.tar.bz2
Issue #17408: Avoid using an obsolete instance of the copyreg module when the interpreter is shutdown and then started again.
Diffstat (limited to 'Python')
-rw-r--r--Python/pythonrun.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 40f6ab4..75f1ef6 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -524,9 +524,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
@@ -632,6 +629,7 @@ Py_Finalize(void)
PyFloat_Fini();
PyDict_Fini();
PySlice_Fini();
+ _PyType_Fini();
/* Cleanup Unicode implementation */
_PyUnicode_Fini();