Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 45025:ea3fe302d392 legacy-trunk
Added clear cache methods to clear the internal type lookup cache for ref leak test runs.
| author | Christian Heimes <christian@cheimes.de> |
|---|---|
| date | Sun, 27 Jan 2008 23:34:59 +0000 |
| parents | 599f22a349a2 |
| children | 262263737bce |
line wrap: on
line diff
--- a/Python/pythonrun.c Sun Jan 27 23:08:46 2008 +0000 +++ b/Python/pythonrun.c Sun Jan 27 23:34:59 2008 +0000 @@ -377,6 +377,9 @@ Py_XDECREF(warnings_module); warnings_module = NULL; + /* Clear type lookup cache */ + PyType_ClearCache(); + /* Collect garbage. This may call finalizers; it's nice to call these * before all modules are destroyed. * XXX If a __del__ or weakref callback is triggered here, and tries to
