Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 63852:1bd3534136a0
Issue #477863: Print a warning at shutdown if gc.garbage is not empty.
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Sun, 08 Aug 2010 22:18:46 +0000 |
| parents | 4ca497f4819c |
| children | 686b18bffb86 |
line wrap: on
line diff
--- a/Python/pythonrun.c Sun Aug 08 22:12:45 2010 +0000 +++ b/Python/pythonrun.c Sun Aug 08 22:18:46 2010 +0000 @@ -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();
