Skip to content
Create a gist now

Instantly share code, notes, and snippets.

anonymous /comment
Created Jun 23, 2010

import gc, sys
print len(gc.get_objects()) # 4073 objects in memory
import httplib
del sys.modules["httplib"]
httplib = None
print len(gc.get_objects()) # 6745 objects in memory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.