[issue3205] bz2 iterator fails silently on MemoryError

2008-08-09 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Fixed in r65609. Thanks for the report and for the patch! -- nosy: +pitrou resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3205] bz2 iterator fails silently on MemoryError

2008-06-26 Thread Michiel de Hoon
New submission from Michiel de Hoon <[EMAIL PROTECTED]>: PyMem_Malloc is called in the Util_ReadAhead function in bz2module.c. The code checks if PyMem_Malloc returns NULL, but in that case no MemoryError is raised. So, if in the following code: >>> input = bz2.BZ2File("myfile.txt.bz2") >>> for