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