All pastes #278175 Raw Edit

Someone

public python v1 · immutable
·published 2006-12-13 22:01 UTC
rendered paste body
import gcdef collect():  print "Collecting:", gc.collect()  print "Object count:", len(gc.get_objects())  print ""collect()n1 = 10n2 = 10000for x in xrange(n1):  print "%d-%d Foos for fun" % (x*n2, (x*n2)+n2)  results = []  for i in xrange(x*n2, (x*n2)+n2):    class Foo(object):      count = i    results.append(Foo())  results = None  collect()