Untitled
public text v1 · immutableimport 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()