Skip to content

Instantly share code, notes, and snippets.

@danfairs
Created May 5, 2011 09:42
Show Gist options
  • Save danfairs/956803 to your computer and use it in GitHub Desktop.
Save danfairs/956803 to your computer and use it in GitHub Desktop.
Python memory usage
>>> x = range(0, 100000000)
>>> import gc
>>> x = None
>>> gc.collect()
0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment