diff options
author | Tim Peters <tim.peters@gmail.com> | 2003-03-23 02:51:01 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2003-03-23 02:51:01 (GMT) |
commit | 78be7993b64958585bafdced0c86c06fde8155fb (patch) | |
tree | 74bebff154ab7cadac8356d6e8bde221a6af30c9 /Lib/shutil.py | |
parent | 0529377cdfd6912a2450239c1b52ae53b09e1658 (diff) | |
download | cpython-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/shutil.py')
0 files changed, 0 insertions, 0 deletions