title: 64 bit python fills up memory until computer freezes with no memerror
body: <p>I used to run 32 bit python on a 32-bit OS and whenever i accidentally appended values to an array in an infinite list or tried to load too big of a file, python would just stop with an out of memory error. However, i now use 64-bit python on a 64-bit OS, and instead of giving an exception, python uses up every last bit of memory and causes my computer to freeze up so i am forced to restart it. </p>
  
  <p>I looked around stack overflow and it doesn't seem as if there is a good way to control memory usage or limit memory usage. For example, this solution: <a href="https://stackoverflow.com/questions/16779497/how-to-set-memory-limit-for-thread-or-process-in-python">How to set memory limit for thread or process in python?</a> limits the resources python can use, but it would be impractical to paste into every piece of code i want to write. </p>
  
  <p>How can i prevent this from happening?</p>