Re: bz2 module doesn't work properly with all bz2 files

2010-06-04 Thread Steven D'Aprano
On Fri, 04 Jun 2010 12:53:26 -0700, Magdoll wrote: > I'm not sure what's causing this, but depending on the compression > program used, the bz2 module sometimes exits earlier. [...] The current bz2 module only supports files written as a single stream, and not multiple stream files. This is why

Re: bz2 module doesn't work properly with all bz2 files

2010-06-04 Thread Magdoll
On Jun 4, 3:05 pm, Cameron Simpson wrote: > On 04Jun2010 12:53, Magdoll wrote: > | I'm not sure what's causing this, but depending on the compression > | program used, the bz2 module sometimes exits earlier. > | > | I used pbzip2 to compress my bz2 files and read through the file using > | the bz

Re: bz2 module doesn't work properly with all bz2 files

2010-06-04 Thread Cameron Simpson
On 04Jun2010 12:53, Magdoll wrote: | I'm not sure what's causing this, but depending on the compression | program used, the bz2 module sometimes exits earlier. | | I used pbzip2 to compress my bz2 files and read through the file using | the bz2 module. The file descriptor always exits much earlie

bz2 module doesn't work properly with all bz2 files

2010-06-04 Thread Magdoll
I'm not sure what's causing this, but depending on the compression program used, the bz2 module sometimes exits earlier. I used pbzip2 to compress my bz2 files and read through the file using the bz2 module. The file descriptor always exits much earlier than where the actual EOF is. If I use bzip2