@@ -58,7 +58,7 @@ The available exception and functions in this module are:
5858 exception if any error occurs.
5959
6060
61- .. function :: compressobj(level=-1, method=DEFLATED, wbits=15, memlevel=8, strategy=Z_DEFAULT_STRATEGY, [ zdict])
61+ .. function :: compressobj(level=-1, method=DEFLATED, wbits=15, memlevel=8, strategy=Z_DEFAULT_STRATEGY[, zdict])
6262
6363 Returns a compression object, to be used for compressing data streams that won't
6464 fit into memory at once.
@@ -86,6 +86,10 @@ The available exception and functions in this module are:
8686 to occur frequently in the data that is to be compressed. Those subsequences
8787 that are expected to be most common should come at the end of the dictionary.
8888
89+ .. versionchanged :: 3.3
90+ Added the *method *, *wbits *, *memlevel *, *strategy * and *zdict *
91+ parameters.
92+
8993
9094.. function :: crc32(data[, value])
9195
@@ -103,12 +107,13 @@ The available exception and functions in this module are:
103107
104108 Always returns an unsigned 32-bit integer.
105109
106- .. note ::
107- To generate the same numeric value across all Python versions and
108- platforms use crc32(data) & 0xffffffff. If you are only using
109- the checksum in packed binary format this is not necessary as the
110- return value is the correct 32bit binary representation
111- regardless of sign.
110+ .. note ::
111+
112+ To generate the same numeric value across all Python versions and
113+ platforms, use ``crc32(data) & 0xffffffff ``. If you are only using
114+ the checksum in packed binary format this is not necessary as the
115+ return value is the correct 32-bit binary representation
116+ regardless of sign.
112117
113118
114119.. function :: decompress(data[, wbits[, bufsize]])
@@ -135,7 +140,7 @@ The available exception and functions in this module are:
135140 to :c:func: `malloc `. The default size is 16384.
136141
137142
138- .. function :: decompressobj([ wbits[, zdict] ])
143+ .. function :: decompressobj(wbits=15 [, zdict])
139144
140145 Returns a decompression object, to be used for decompressing data streams that
141146 won't fit into memory at once.
@@ -146,10 +151,14 @@ The available exception and functions in this module are:
146151 provided, this must be the same dictionary as was used by the compressor that
147152 produced the data that is to be decompressed.
148153
149- .. note ::
150- If *zdict * is a mutable object (such as a :class: `bytearray `), you must not
151- modify its contents between the call to :func: `decompressobj ` and the first
152- call to the decompressor's ``decompress() `` method.
154+ .. note ::
155+
156+ If *zdict * is a mutable object (such as a :class: `bytearray `), you must not
157+ modify its contents between the call to :func: `decompressobj ` and the first
158+ call to the decompressor's ``decompress() `` method.
159+
160+ .. versionchanged :: 3.3
161+ Added the *zdict * parameter.
153162
154163
155164Compression objects support the following methods:
0 commit comments