]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Added a new debug method sys.gettotalrefcount(), which returns the total number of...
authorMark Hammond <mhammond@skippinet.com.au>
Tue, 20 Jun 2000 08:12:48 +0000 (08:12 +0000)
committerMark Hammond <mhammond@skippinet.com.au>
Tue, 20 Jun 2000 08:12:48 +0000 (08:12 +0000)
commit440d89823020b71d7659fcd357c24549ce815b4c
tree9c99e26e945d77e56cc28544ac7371269940b70f
parentabf17032a45c5253fd7f5211cc5b4b0409721699
Added a new debug method sys.gettotalrefcount(), which returns the total number of references on all Python objects.  This is only enabled when Py_TRACE_REFS is defined (which includes default debug builds under Windows).

Also removed a redundant cast from sys.getrefcount(), as discussed on the patches list.
Python/sysmodule.c