Author martin.panter
Recipients akuchling, docs@python, martin.panter, nadeem.vawda, phr, terry.reedy
Date 2015-11-18.00:52:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1447807926.72.0.191120215975.issue5784@psf.upfronthosting.co.za>
In-reply-to
Content
Looking at the current zlib module source code, I confirmed that wbits is passed directly to the deflateInit2(windowBits) and inflateInit2(windowBits) parameters. So the following modes could also be added to the documentation for decompression:

* Zero: automatically determine size from zlib header
* 32 + logarithm: automatically accept either a zlib or gzip header

Also, the compressobj() doc string is out of date. It mentions 8–15 but none of the other options.

Paul: Perhaps it would be better to say “wbits” corresponds to the format of the stream, rather than mentioning just the window size as currently proposed. Then hopefully the reader would look to see what value is needed for the raw Deflate format.
History
Date User Action Args
2015-11-18 00:52:06martin.pantersetrecipients: + martin.panter, akuchling, terry.reedy, phr, nadeem.vawda, docs@python
2015-11-18 00:52:06martin.pantersetmessageid: <1447807926.72.0.191120215975.issue5784@psf.upfronthosting.co.za>
2015-11-18 00:52:06martin.panterlinkissue5784 messages
2015-11-18 00:52:06martin.pantercreate