title: Infinite While Loop - Memory Use?
body: <p>I am trying to figure out how a while loop determines how much memory to use. </p>
  
  <p>At the basic level:</p>
  
  <pre><code>while True:
      pass
  </code></pre>
  
  <p>If I did a similar thing in PHP, it would grind my localhost to a crawl. But in this case I would expect it to use next to nothing.</p>
  
  <p>So for an infinite loop in python, should I expect that it would use up tons of memory, or does it scale according to what is being done, and where?</p>