]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
_Py_PrintReferences(): Changed to print object address at start of each
authorTim Peters <tim.peters@gmail.com>
Thu, 17 Apr 2003 19:52:29 +0000 (19:52 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 17 Apr 2003 19:52:29 +0000 (19:52 +0000)
commit269b2a6797a11958929a5c1102dd1dd67d29e411
tree37287664d133867925f963734231c9a08af052f6
parenta4ea603b055533e71920a088acb1c106e4895dbd
_Py_PrintReferences():  Changed to print object address at start of each
new line.

New pvt API function _Py_PrintReferenceAddresses():  Prints only the
addresses and refcnts of the live objects.  This is always safe to call,
because it has no dependence on Python's C API.

Py_Finalize():  If envar PYTHONDUMPREFS is set, call (the new)
_Py_PrintReferenceAddresses() right before dumping final pymalloc stats.
We can't print the reprs of the objects here because too much of the
interpreter has been shut down.  You need to correlate the addresses
displayed here with the object reprs printed by the earlier
PYTHONDUMPREFS call to _Py_PrintReferences().
Include/object.h
Objects/object.c
Python/pythonrun.c