kann mir jemand sagen, was an dem Code falsch ist, bzw. wie ich das Problem beheben kann

Code: Alles auswählen
import httplib
conn = httplib.HTTPConnection("www.python.org")
conn.request("GET", "/ftp/python/2.3.3/Python-2.3.3.exe")
r2 = conn.getresponse()
print r2.status, r2.reason
file = open("Python-2.3.3.exe", 'wb')
file.write(r2.read())
file.close()
conn.close()
Code: Alles auswählen
200 OK
Traceback (most recent call last):
File "D:\Programme\Python\httplibtest.py", line 12, in ?
file.write(r2.read())
File "D:\Programme\Python\lib\httplib.py", line 396, in read
s = self._safe_read(self.length)
File "D:\Programme\Python\lib\httplib.py", line 476, in _safe_read
chunk = self.fp.read(amt)
File "D:\Programme\Python\lib\socket.py", line 301, in read
data = self._sock.recv(recv_size)
MemoryError
- Arbeitsspeicher -> 768 MB
- Python 2.3.2
Greetz