diff Python/sysmodule.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 61ac1e322da7
line wrap: on
line diff
--- a/Python/sysmodule.c	Wed Apr 12 15:28:49 2006 +0000
+++ b/Python/sysmodule.c	Wed Apr 12 17:06:05 2006 +0000
@@ -604,10 +604,9 @@
 static PyObject *
 sys_gettotalrefcount(PyObject *self)
 {
-	return PyInt_FromSsize_t(_Py_RefTotal);
+	return PyInt_FromSsize_t(_Py_GetRefTotal());
 }
-
-#endif /* Py_TRACE_REFS */
+#endif /* Py_REF_DEBUG */
 
 PyDoc_STRVAR(getrefcount_doc,
 "getrefcount(object) -> integer\n\