Skip to content

Latest commit

 

History

History
5 lines (5 loc) · 301 Bytes

2021-03-24-09-40-02.bpo-43612.vMGZ4y.rst

File metadata and controls

5 lines (5 loc) · 301 Bytes

:func:`zlib.compress` now accepts a wbits parameter which allows users to compress data as a raw deflate block without zlib headers and trailers in one go. Previously this required instantiating a zlib.compressobj. It also provides a faster alternative to gzip.compress when wbits=31 is used.