Skip to content

Commit 7ba376e

Browse files
committed
add versionchanged note
1 parent b17e21d commit 7ba376e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Doc/library/gzip.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ The module defines the following items:
5959
.. versionchanged:: 3.6
6060
Accepts a :term:`path-like object`.
6161

62+
.. versionchanged:: 3.14
63+
The default compression level was reduced to 6 (down from 9).
64+
It is the default level used by most compression tools and a better
65+
tradeoff between speed and performance.
66+
6267
.. exception:: BadGzipFile
6368

6469
An exception raised for invalid gzip files. It inherits from :exc:`OSError`.
@@ -181,6 +186,11 @@ The module defines the following items:
181186
Remove the ``filename`` attribute, use the :attr:`~GzipFile.name`
182187
attribute instead.
183188

189+
.. versionchanged:: 3.14
190+
The default compression level was reduced to 6 (down from 9).
191+
It is the default level used by most compression tools and a better
192+
tradeoff between speed and performance.
193+
184194

185195
.. function:: compress(data, compresslevel=6, *, mtime=0)
186196

@@ -206,6 +216,10 @@ The module defines the following items:
206216
The *mtime* parameter now defaults to 0 for reproducible output.
207217
For the previous behaviour of using the current time,
208218
pass ``None`` to *mtime*.
219+
.. versionchanged:: 3.14
220+
The default compression level was reduced to 6 (down from 9).
221+
It is the default level used by most compression tools and a better
222+
tradeoff between speed and performance.
209223

210224
.. function:: decompress(data)
211225

0 commit comments

Comments
 (0)