diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2013-05-04 20:45:02 +0200 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-05-04 20:45:02 +0200 |
commit | 997a5a58facf01e9fbb430924d43be8b4dca7856 (patch) | |
tree | dd634bb3b430a7e825db2966ef89bf82777b3c4c /Python/pythonrun.c | |
parent | b5e2814a6434a4728e070530417efb96833689f3 (diff) | |
download | cpython-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.c | 4 |
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(); |