Issue #17408: Avoid using an obsolete instance of the copyreg module when the interpreter is shutdown and then started again.

This commit is contained in:
Antoine Pitrou 2013-05-04 20:46:19 +02:00
commit df6931dbbc
4 changed files with 22 additions and 8 deletions

View file

@ -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();