Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/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)
Add Comment
Please, Sign In to add comment