title: Memory Error When Parsing Large File - Python
body: <p>There have been questions asked about memory errors in Python, but I want to ask one more specific to my situation. I am new to programming and Python.</p>
  
  <p>When parsing a large text file (~8GB), the line</p>
  
  <pre><code>mylist = [line.strip('\n').split('|') for line in f]
  </code></pre>
  
  <p>resulted in "MemoryError".</p>
  
  <p>I am running the 64-bit of Python [MSC v.1500 64 bit (AMD64)] on Windows XP 64-bit with 12GB of RAM. How can I handle this Memory Error other than installing more RAM?</p>