]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Improved new Py_TRACE_REFS gimmicks.
authorTim Peters <tim.peters@gmail.com>
Sun, 23 Mar 2003 17:52:28 +0000 (17:52 +0000)
committerTim Peters <tim.peters@gmail.com>
Sun, 23 Mar 2003 17:52:28 +0000 (17:52 +0000)
commit7571a0fbcf6fd5d6014008f566f970c84cff7d95
tree4d9d82af5dc1b2aa4b51a89648dce4c188c237f5
parenta16b21fb0ab25e4cbe54fe0a39da5e448f3d44cb
Improved new Py_TRACE_REFS gimmicks.
Arranged that all the objects exposed by __builtin__ appear in the list
of all objects.  I basically peed away two days tracking down a mystery
leak in sys.gettotalrefcount() in a ZODB app (== tons of code), because
the object leaking the references didn't appear in the sys.getobjects(0)
list.  The object happened to be False.  Now False is in the list, along
with other popular & previously missing leak candidates (like None).
Alas, we still don't have a choke point covering *all* Python objects,
so the list of all objects may still be incomplete.
Include/object.h
Objects/object.c
Objects/typeobject.c
Python/bltinmodule.c