summaryrefslogtreecommitdiffstats
path: root/Lib/codecs.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2003-03-23 02:51:01 (GMT)
committerTim Peters <tim.peters@gmail.com>2003-03-23 02:51:01 (GMT)
commit78be7993b64958585bafdced0c86c06fde8155fb (patch)
tree74bebff154ab7cadac8356d6e8bde221a6af30c9 /Lib/codecs.py
parent0529377cdfd6912a2450239c1b52ae53b09e1658 (diff)
downloadcpython-78be7993b64958585bafdced0c86c06fde8155fb.zip
cpython-78be7993b64958585bafdced0c86c06fde8155fb.tar.gz
cpython-78be7993b64958585bafdced0c86c06fde8155fb.tar.bz2
When Py_TRACE_REFS is defined, a list of all live objects is maintained in
a doubly-linked list, exposed by sys.getobjects(). Unfortunately, it's not really all live objects, and it seems my fate to bump into programs where sys.gettotalrefcount() keeps going up but where the reference leaks aren't accounted for by anything in the list of all objects. This patch helps a little: if COUNT_ALLOCS is also defined, from now on type objects will also appear in this list, provided at least one object of a type has been allocated.
Diffstat (limited to 'Lib/codecs.py')
0 files changed, 0 insertions, 0 deletions