Guest User

Untitled

a guest
Nov 18th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #!/usr/bin/env python3
  2. import time
  3.  
  4. lis = []
  5. for i in range(100000 * 1024):
  6. lis.append(i)
  7.  
  8. print('Sleeping for 30 seconds')
  9. time.sleep(30)
  10.  
  11. print(lis[100]) # Just to make sure we don't prematurely free `lis` because there's no ref to it
  12. del lis
  13. print('Sleeping for a while and freeing list')
  14.  
  15. time.sleep(360)
Add Comment
Please, Sign In to add comment