Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 83613:0b34fd75b937
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:46:19 +0200 |
| parents | e39a8f8ceb9f 8c1385205a35 |
| children | 97b7bd87c44c |
line wrap: on
line diff
--- a/Python/pythonrun.c Sat May 04 20:18:53 2013 +0200 +++ b/Python/pythonrun.c Sat May 04 20:46:19 2013 +0200 @@ -524,9 +524,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 @@ -632,6 +629,7 @@ PyFloat_Fini(); PyDict_Fini(); PySlice_Fini(); + _PyType_Fini(); /* Cleanup Unicode implementation */ _PyUnicode_Fini();
