Re: Problem reading with bz2.BZ2File(). Bug?

2006-11-15 Thread Clodoaldo Pinto Neto
Leo Kislov wrote: > Confirmed on windows with 2.4 and 2.5: > > C:\p>\Python24\python.exe bzp.py > line number: 588317 > '\x1e' > '' > > C:\p>\Python25\python.exe bzp.py > line number: 588317 > '\x1e' > '' > > Looks like one byte of garbage is appended at the end of file. Please > file a bug report.

Re: Problem reading with bz2.BZ2File(). Bug?

2006-11-15 Thread Leo Kislov
Clodoaldo Pinto Neto wrote: > Fredrik Lundh wrote: > > Clodoaldo Pinto Neto wrote: > > > > > The offending file is 5.5 MB. Sorry, i could not reproduce this problem > > > with a smaller file. > > > > but surely you can post the repr() of the last two lines? > > This is the output: > > $ python bzp.

Re: Problem reading with bz2.BZ2File(). Bug?

2006-11-15 Thread Clodoaldo Pinto Neto
Fredrik Lundh wrote: > Clodoaldo Pinto Neto wrote: > > > The offending file is 5.5 MB. Sorry, i could not reproduce this problem > > with a smaller file. > > but surely you can post the repr() of the last two lines? This is the output: $ python bzp.py line number: 588317 '\x07' '' Clodoaldo --

Re: Problem reading with bz2.BZ2File(). Bug?

2006-11-15 Thread Fredrik Lundh
Clodoaldo Pinto Neto wrote: > The offending file is 5.5 MB. Sorry, i could not reproduce this problem > with a smaller file. but surely you can post the repr() of the last two lines? -- http://mail.python.org/mailman/listinfo/python-list

Problem reading with bz2.BZ2File(). Bug?

2006-11-15 Thread Clodoaldo Pinto Neto
When comparing two files which should be equal the last line is different: The first file is a bzip2 compressed file and is read with bz2.BZ2File() The second file is the same file uncompressed and read with open() The first file named file.txt.bz2 is uncompressed with: $ bunzip2 -k file.txt.bz2