This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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 <1427082405.21.0.84420392813.issue5784@psf.upfronthosting.co.za>
In-reply-to
Content
According to <http://zlib.net/manual.html#Advanced>, 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.
History
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: <1427082405.21.0.84420392813.issue5784@psf.upfronthosting.co.za>
2015-03-23 03:46:45martin.panterlinkissue5784 messages
2015-03-23 03:46:45martin.pantercreate