public
anonymous / comment
Created

  • Download Gist
comment
1 2 3 4 5 6 7 8 9 10 11
 
import gc, sys
 
print len(gc.get_objects()) # 4073 objects in memory
 
import httplib
del sys.modules["httplib"]
httplib = None
 
gc.collect()
print len(gc.get_objects()) # 6745 objects in memory

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.