commit | 696e03553b9e455bd6729cee5a8be43a2924f537 | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Sun Aug 08 22:18:46 2010 +0000 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Sun Aug 08 22:18:46 2010 +0000 |
tree | 1921798050d0e6f60e64e0a8408690398d2b82f6 | |
parent | 2e5f1178ac55c032982c69f4f4dd70c19f9fa46e [diff] [blame] |
Issue #477863: Print a warning at shutdown if gc.garbage is not empty.
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 233fc16..a7a54ba 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c
@@ -404,6 +404,9 @@ 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();