title: Python MemoryError
body: <p>I have a small script, generating a wordlist from given chars in python. But always gets a MemoryError after execution. Why is it stored in the ram? is there better way of code not using ram but giving a working output?</p>
  
  <pre><code>from itertools import product
  chars = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'j', 'k', 
           'm', 'n', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 
           'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 
           'H', 'J', 'K', 'L', 'M', 'N', 'P', 'Q', 'R', 'S', 
           'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '1', '2', '3', 
           '4', '5', '6', '7', '8', '9']
  length = 8
  result = ["".join(item) for item in product(*[chars]*length)]
  for item in result:
      print(item)
  </code></pre>