When I compress a file with bzip2 from command line and read it with
*uncomp_data = bz2.BZ2File("fname").read()* , it reads the whole file into
uncomp_data.

However when I compress the file with pbzip2 from command line and read it
in a similar way* it just reads the block size of data* used for
compression.

So if I compress with:

*pbzip2 temp.temp -b3

*the read returns 300000 bytes of data*.

*I tried with various block sizes to confirm. Has it got something to do
with the block separator fields ?
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to