Skip to content

Instantly share code, notes, and snippets.

@isaacd9
Last active November 16, 2017 20:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaacd9/dbeb604479cda3e1779892178eb3b275 to your computer and use it in GitHub Desktop.
Save isaacd9/dbeb604479cda3e1779892178eb3b275 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python3
import time
lis = []
for i in range(100000 * 1024):
lis.append(i)
print('Sleeping for 30 seconds')
time.sleep(30)
print(lis[100]) # Just to make sure we don't prematurely free `lis` because there's no ref to it
del lis
print('Sleeping for a while and freeing list')
time.sleep(360)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment