comparison Python/codecs.c @ 28653:56006d97bcef legacy-trunk

_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().
author Tim Peters <tim.peters@gmail.com>
date Thu, 17 Apr 2003 19:52:29 +0000
parents 850626d47574
children 25519d6c97b8
comparison
equal deleted inserted replaced
28652:28a2975514cd 28653:56006d97bcef