[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

MemoryError in imaplib?

Marcio Faustino

2/13/2010 7:32:00 PM

Hi,

When using "imaplib" to fetch e-mail messages, the "IMAP4_SSL.read"
and "IMAP4_SSL.readline" functions sometimes throw a "MemoryError"
exception in "chunks.append(data)" and "line.append(char)",
respectively. But if I change those functions to use instead a
"cStringIO" buffer object, then that exception doesn't get thrown.

Is this normal? I've seen this happen with Python 2.6.4 in both
Windows XP 32-bit and Windows 7 64-bit.

Thanks,