diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2013-05-04 18:45:02 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-05-04 18:45:02 (GMT) |
commit | 957a23b0883c1d92f4d5c5de2459319615a8ed34 (patch) | |
tree | 3aa62a3de56405919f45f4da403f409c6aab2287 /Python/pythonrun.c | |
parent | 5de183a07cfce837c926a3600369babdfc1a2ef4 (diff) | |
download | cpython-957a23b0883c1d92f4d5c5de2459319615a8ed34.zip cpython-957a23b0883c1d92f4d5c5de2459319615a8ed34.tar.gz cpython-957a23b0883c1d92f4d5c5de2459319615a8ed34.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/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 ee6071e..ddda4a4 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(); |