MemoryError in imaplib?

Discussion in 'Python' started by Márcio Faustino, Feb 13, 2010.

  1. 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,
     
    Márcio Faustino, Feb 13, 2010
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andy Rechenberg
    Replies:
    0
    Views:
    494
    Andy Rechenberg
    Aug 27, 2003
  2. Jamie
    Replies:
    0
    Views:
    397
    Jamie
    Nov 27, 2003
  3. Sylvain Thenault
    Replies:
    2
    Views:
    496
    Sylvain Thenault
    Jan 18, 2005
  4. Bernhard Reimar Hoefle

    MemoryError Numarray

    Bernhard Reimar Hoefle, Sep 26, 2005, in forum: Python
    Replies:
    0
    Views:
    380
    Bernhard Reimar Hoefle
    Sep 26, 2005
  5. Replies:
    4
    Views:
    303
Loading...

Share This Page