Author martin.panter
Recipients docs@python, martin.panter, nadeem.vawda, phr, terry.reedy
Date 2015-03-23.03:46:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
According to <>, the deflateInit2(windowBits) parameter can be:

* +8 to +15 to include a “zlib” header and trailer
* −8 to −15 to write a raw Deflate stream with no header nor trailer
* 16 + (8 to 15) to include a basic “gzip” header and trailer

The inflateInit2(windowBits) parameter can also be set to the above values to specify what header and trailer to expect, and it can also be set to 0 to read the window size from the “zlib” header itself.

Assuming that the Python module passes “wbits” straight through to the actual “zlib” module, I think these points could be clarified in the Python documentation.
Date User Action Args
2015-03-23 03:46:45martin.pantersetrecipients: + martin.panter, terry.reedy, phr, nadeem.vawda, docs@python
2015-03-23 03:46:45martin.pantersetmessageid: <>
2015-03-23 03:46:45martin.panterlinkissue5784 messages
2015-03-23 03:46:45martin.pantercreate