diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2013-05-06 19:15:57 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-05-06 19:15:57 (GMT) |
commit | 5f454a07a054eb0db7499d8dbd537ff8ce7bda18 (patch) | |
tree | 08557fde41d4a25d1961b38face3ca46bb8c695d /Python/pythonrun.c | |
parent | 1df37c657d7b32cfc7e765f13323415ef1c5be31 (diff) | |
download | cpython-5f454a07a054eb0db7499d8dbd537ff8ce7bda18.zip cpython-5f454a07a054eb0db7499d8dbd537ff8ce7bda18.tar.gz cpython-5f454a07a054eb0db7499d8dbd537ff8ce7bda18.tar.bz2 |
Issue #1545463: Global variables caught in reference cycles are now garbage-collected at shutdown.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 96b0988..02a4329 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -544,10 +544,6 @@ Py_Finalize(void) while (PyGC_Collect() > 0) /* nothing */; #endif - /* We run this while most interpreter state is still alive, so that - debug information can be printed out */ - _PyGC_Fini(); - /* Destroy all modules */ PyImport_Cleanup(); @@ -628,6 +624,7 @@ Py_Finalize(void) PyFloat_Fini(); PyDict_Fini(); PySlice_Fini(); + _PyGC_Fini(); /* Cleanup Unicode implementation */ _PyUnicode_Fini(); |