All pastes #278127 Raw Edit

Untitled

public text v1 · immutable
·published 2006-12-13 21:29 UTC
rendered paste body
import gc

def collect():
    print "Collecting:", gc.collect()
    print "Object count:", len(gc.get_objects())
    print ""

collect()

n = 10000

for x in xrange(100):
  print "%d-%d Foos for fun" % (x*n, (x*n)+10000)
  for i in xrange(x*n, (x*n)+10000):
    class Foo(object):
      count = i

  collect()