summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2006-04-12 17:06:58 (GMT)
committerArmin Rigo <arigo@tunes.org>2006-04-12 17:06:58 (GMT)
commit337c143b4a1dd06aac882febcee80d9af7342493 (patch)
treef2f08d65859a0d008dc1dcf05a09249cc562d536 /Python/pythonrun.c
parent17cfe2b7571ecfb2941e9857e725eef74119e9bf (diff)
downloadcpython-337c143b4a1dd06aac882febcee80d9af7342493.zip
cpython-337c143b4a1dd06aac882febcee80d9af7342493.tar.gz
cpython-337c143b4a1dd06aac882febcee80d9af7342493.tar.bz2
Ignore the references to the dummy objects used as deleted keys
in dicts and sets when computing the total number of references.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 3317e55..e093dc5 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -379,7 +379,7 @@ Py_Finalize(void)
#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 @@ PyRun_InteractiveLoopFlags(FILE *fp, const char *filename, PyCompilerFlags *flag
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;