diff options
| author | Armin Rigo <arigo@tunes.org> | 2006-04-12 17:06:58 +0000 |
|---|---|---|
| committer | Armin Rigo <arigo@tunes.org> | 2006-04-12 17:06:58 +0000 |
| commit | 337c143b4a1dd06aac882febcee80d9af7342493 (patch) | |
| tree | f2f08d65859a0d008dc1dcf05a09249cc562d536 /Python/sysmodule.c | |
| parent | 17cfe2b7571ecfb2941e9857e725eef74119e9bf (diff) | |
| download | cpython-git-337c143b4a1dd06aac882febcee80d9af7342493.tar.gz | |
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/sysmodule.c')
| -rw-r--r-- | Python/sysmodule.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 0775bb83c6..1ce016f3f7 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -604,10 +604,9 @@ sys_getrefcount(PyObject *self, PyObject *arg) 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\ |
