title: memoryError: out of memory
body: <p>I wrote a program that download the app,movie and other.but when I run it that give me this  Error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "tidopy.py", line 27, in &lt;module&gt;
  data=urllib2.urlopen(addresslist[x]).read()
    File "C:\Python27\lib\socket.py", line 362, in read
    buf.write(data)
  MemoryError: out of memory
  </code></pre>
  
  <p>I think that Error is about this code:</p>
  
  <pre><code>data=urllib2.urlopen(addresslist[x]).read()
  file=open(namelist[x],'wb')
  file.write(data)
  </code></pre>
  
  <p>data is a variable that downloads the data of movies and other</p>
  
  <p>file makes a file</p>
  
  <p>and file.write(data) puts the data in the file</p>
  
  <p>tidopy is my program name..</p>
  
  <p>How can I fix it?</p>
  
  <p>help.</p>