like magic it did the trick :D
This should be applied to future Python release. Thanks.
Fredrik Lundh wrote:
> Jean-Paul Calderone wrote:
> if you look at the debug output (which you may already have done),
> it's an obvious case of fragmentation-inducing behaviour. any malloc-
> based system ma
Jean-Paul Calderone wrote:
> >On a second trial, it's also failed on Python 2.3.5 for Windows, Python
> >2.3.3 for Windows, and Python 2.2.3 for Windows. So this seems to me as
> >a Windows system related bug, not a particular version of Python bug.
>
> Arguably, it's a bug in Python's imaplib mod
On Fri, 23 Dec 2005 14:21:27 +1100, Dody Suria Wijaya <[EMAIL PROTECTED]> wrote:
>Noah wrote:
>> This looks like a bug in your build of Python 2.4.2 for Windows.
>> Basically it means that C's malloc() function in the Python interpreter
>> failed.
>>
>
>On a second trial, it's also failed on Python
Noah wrote:
> This looks like a bug in your build of Python 2.4.2 for Windows.
> Basically it means that C's malloc() function in the Python interpreter
> failed.
>
On a second trial, it's also failed on Python 2.3.5 for Windows, Python
2.3.3 for Windows, and Python 2.2.3 for Windows. So this se
Fredrik Lundh wrote:
> try adding a print statement to lib/imaplib.py, just before that read
> statement,
>
> print size, read, size-read
> data = self.sslobj.read(size-read)
>
> and let us know what it prints.
14130601 0 14130601
14130601 16353 14114248
14130601 32737 14097864
1
Dody Suria Wijaya wrote:
> Hi, I encountered a Memory Error Exception on using IMAP4 just like in
> Python documentation example, on a specially large email (10 MB). Any
> idea how to fix/circumvent this?
>
> >>> typ, data = M.fetch(89, '(RFC822)')
> Traceback (most recent call last):
>File "
This looks like a bug in your build of Python 2.4.2 for Windows.
Basically it means that C's malloc() function in the Python interpreter
failed.
You can catch this exception to try to recover. Here is an example:
try:
typ, data = M.fetch(num, '(RFC822)')
exception MemoryError, e:
Mode details, this occurs on Python 2.4.2 windows, but not on Python
2.3.4 cygwin or Python 2.3.5 windows binary.
Dody Suria Wijaya wrote:
>
> Hi, I encountered a Memory Error Exception on using IMAP4 just like in
> Python documentation example, on a specially large email (10 MB). Any
> idea
Hi, I encountered a Memory Error Exception on using IMAP4 just like in
Python documentation example, on a specially large email (10 MB). Any
idea how to fix/circumvent this?
>>> typ, data = M.fetch(89, '(RFC822)')
Traceback (most recent call last):
File "", line 1, in ?
File "C:\Python24