Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 37638:65ecb83ea7dd legacy-trunk
Ignore the references to the dummy objects used as deleted keys
in dicts and sets when computing the total number of references.
| author | Armin Rigo <arigo@tunes.org> |
|---|---|
| date | Wed, 12 Apr 2006 17:06:05 +0000 |
| parents | 57b1ff138995 |
| children | 2f3f2e32dfd9 |
line wrap: on
line diff
--- a/Python/pythonrun.c Wed Apr 12 15:28:49 2006 +0000 +++ b/Python/pythonrun.c Wed Apr 12 17:06:05 2006 +0000 @@ -34,7 +34,7 @@ #else /* Py_REF_DEBUG */ #define PRINT_TOTAL_REFS() fprintf(stderr, \ "[%" PY_FORMAT_SIZE_T "d refs]\n", \ - _Py_RefTotal) + _Py_GetRefTotal()) #endif extern char *Py_GetPath(void);
