Last active
November 16, 2017 20:03
-
-
Save isaacd9/dbeb604479cda3e1779892178eb3b275 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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