comparison 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
comparison
equal deleted inserted replaced
37636:2e8ab797ceaf 37638:65ecb83ea7dd
602 602
603 #ifdef Py_REF_DEBUG 603 #ifdef Py_REF_DEBUG
604 static PyObject * 604 static PyObject *
605 sys_gettotalrefcount(PyObject *self) 605 sys_gettotalrefcount(PyObject *self)
606 { 606 {
607 return PyInt_FromSsize_t(_Py_RefTotal); 607 return PyInt_FromSsize_t(_Py_GetRefTotal());
608 } 608 }
609 609 #endif /* Py_REF_DEBUG */
610 #endif /* Py_TRACE_REFS */
611 610
612 PyDoc_STRVAR(getrefcount_doc, 611 PyDoc_STRVAR(getrefcount_doc,
613 "getrefcount(object) -> integer\n\ 612 "getrefcount(object) -> integer\n\
614 \n\ 613 \n\
615 Return the reference count of object. The count returned is generally\n\ 614 Return the reference count of object. The count returned is generally\n\