<s> import gc <EOL> import inspect <EOL> def dump ( ) : <EOL> print "<STR_LIT>" <EOL> gc . collect ( ) <EOL> print "<STR_LIT>" <EOL> gc . collect ( ) <EOL> print "<STR_LIT>" <EOL> for x in gc . garbage : <EOL> s = str ( x ) <EOL> if len ( s ) > <NUM_LIT> : <EOL> s = "<STR_LIT>" % s [ : <NUM_LIT> ] <EOL> print "<STR_LIT>" , s <EOL> print "<STR_LIT>" , type ( x ) <EOL> print "<STR_LIT>" , len ( gc . get_referrers ( x ) ) <EOL> try : <EOL> print "<STR_LIT>" , inspect . isclass ( type ( x ) ) <EOL> print "<STR_LIT>" , inspect . getmodule ( x ) <EOL> lines , line_num = inspect . getsourcelines ( type ( x ) ) <EOL> print "<STR_LIT>" , line_num <EOL> for l in lines : <EOL> print "<STR_LIT>" , l . rstrip ( "<STR_LIT:\n>" ) <EOL> except Exception : <EOL> pass <EOL> print </s>
