Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 37639:bc4fbbb2db30 2.4
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:58 +0000 |
| parents | 6c3d0a0c1956 |
| children | 54d177ede883 |
line wrap: on
line diff
--- a/Python/pythonrun.c Wed Apr 12 15:28:52 2006 +0000 +++ b/Python/pythonrun.c Wed Apr 12 17:06:58 2006 +0000 @@ -379,7 +379,7 @@ #endif #ifdef Py_REF_DEBUG - fprintf(stderr, "[%ld refs]\n", _Py_RefTotal); + fprintf(stderr, "[%ld refs]\n", _Py_GetRefTotal()); #endif #ifdef Py_TRACE_REFS @@ -694,7 +694,7 @@ for (;;) { ret = PyRun_InteractiveOneFlags(fp, filename, flags); #ifdef Py_REF_DEBUG - fprintf(stderr, "[%ld refs]\n", _Py_RefTotal); + fprintf(stderr, "[%ld refs]\n", _Py_GetRefTotal()); #endif if (ret == E_EOF) return 0;
