summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-08-08 22:18:46 +0000
committerAntoine Pitrou <solipsis@pitrou.net>2010-08-08 22:18:46 +0000
commit258aa419f44f3c3b45a9ac1db3f6f02519f3d91b (patch)
tree8dd0988cc1deb6f862f64fc2d434533b75d497be /Python/pythonrun.c
parent9cf5be7cb4a473c73ca651db5ebee9dda4cad25a (diff)
downloadcpython-258aa419f44f3c3b45a9ac1db3f6f02519f3d91b.tar.gz
Issue #477863: Print a warning at shutdown if gc.garbage is not empty.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 233fc16ea1..a7a54ba710 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -404,6 +404,9 @@ 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();