Mercurial > cpython-lru_cache-weakref
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 63851:7d4425e308f7 | 63852:1bd3534136a0 |
|---|---|
| 402 each collection might release some types from the type | 402 each collection might release some types from the type |
| 403 list, so they become garbage. */ | 403 list, so they become garbage. */ |
| 404 while (PyGC_Collect() > 0) | 404 while (PyGC_Collect() > 0) |
| 405 /* nothing */; | 405 /* nothing */; |
| 406 #endif | 406 #endif |
| 407 /* We run this while most interpreter state is still alive, so that | |
| 408 debug information can be printed out */ | |
| 409 _PyGC_Fini(); | |
| 407 | 410 |
| 408 /* Destroy all modules */ | 411 /* Destroy all modules */ |
| 409 PyImport_Cleanup(); | 412 PyImport_Cleanup(); |
| 410 | 413 |
| 411 /* Flush stdout+stderr (again, in case more was printed) */ | 414 /* Flush stdout+stderr (again, in case more was printed) */ |
