diff Python/pythonrun.c @ 83650:f0833e6ff2d2

Issue #1545463: Global variables caught in reference cycles are now garbage-collected at shutdown.
author Antoine Pitrou <solipsis@pitrou.net>
date Mon, 06 May 2013 21:15:57 +0200
parents 6f4627a65c0a
children 213d6d7f5979
line wrap: on
line diff
--- a/Python/pythonrun.c	Mon May 06 14:51:13 2013 -0400
+++ b/Python/pythonrun.c	Mon May 06 21:15:57 2013 +0200
@@ -544,10 +544,6 @@
     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 @@
     PyFloat_Fini();
     PyDict_Fini();
     PySlice_Fini();
+    _PyGC_Fini();
 
     /* Cleanup Unicode implementation */
     _PyUnicode_Fini();