Author nadeem.vawda
Recipients Arfrever, christian.heimes, eric.araujo, nadeem.vawda, pitrou, serhiy.storchaka
Date 2013-01-19.22:24:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1358634251.87.0.567671967839.issue15955@psf.upfronthosting.co.za>
In-reply-to
Content
> What if unconsumed_tail is not empty but less than needed to decompress at
> least one byte? We need read more data until unconsumed_tail grow enought to
> be decompressed.

This is possible in zlib, but not in bz2. According to the manual [1], it is
perfectly OK to supply one byte at a time.

For xz, I'm not sure whether this problem could occur. I had assumed that it
could not, but I may be mistaken ;-). Unfortunately liblzma has no proper
manual, so I'll have to dig into the implementation to find out, and I haven't
had the time to do this yet.


[As an aside, it would be nice if the documentation for the zlib module
 mentioned this problem. We can't assume that users of the Python module are
 familiar with the C API for zlib...]


[1] http://www.bzip.org/1.0.5/bzip2-manual-1.0.5.html
History
Date User Action Args
2013-01-19 22:24:12nadeem.vawdasetrecipients: + nadeem.vawda, pitrou, christian.heimes, eric.araujo, Arfrever, serhiy.storchaka
2013-01-19 22:24:11nadeem.vawdasetmessageid: <1358634251.87.0.567671967839.issue15955@psf.upfronthosting.co.za>
2013-01-19 22:24:11nadeem.vawdalinkissue15955 messages
2013-01-19 22:24:09nadeem.vawdacreate