changeset 10310 | b49761555ad6 |
parent 5424 | 8ecbcbff9777 |
child 10312 | 48e57fd17864 |
--- a/_gcdebug.py Tue Feb 10 12:18:38 2015 +0100 +++ b/_gcdebug.py Tue Feb 10 14:37:51 2015 +0100 @@ -63,7 +63,8 @@ ocounters[key] = 1 if isinstance(obj, viewreferrersclasses): print ' ', obj, referrers(obj, showobjs, maxlevel) - return counters, ocounters, gc.garbage + garbage = [repr(obj) for obj in gc.garbage] + return counters, ocounters, garbage def referrers(obj, showobj=False, maxlevel=1):