Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add versionchanged note
  • Loading branch information
rmmancom committed Jun 25, 2025
commit 7ba376e74beabb05a15d8236dd8af15ee23da815
14 changes: 14 additions & 0 deletions Doc/library/gzip.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ The module defines the following items:
.. versionchanged:: 3.6
Accepts a :term:`path-like object`.

.. versionchanged:: 3.14
Comment thread
morotti marked this conversation as resolved.
Outdated
The default compression level was reduced to 6 (down from 9).
It is the default level used by most compression tools and a better
tradeoff between speed and performance.

.. exception:: BadGzipFile

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

.. versionchanged:: 3.14
Comment thread
morotti marked this conversation as resolved.
Outdated
Comment thread
morotti marked this conversation as resolved.
Outdated
The default compression level was reduced to 6 (down from 9).
It is the default level used by most compression tools and a better
tradeoff between speed and performance.


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

Expand All @@ -206,6 +216,10 @@ The module defines the following items:
The *mtime* parameter now defaults to 0 for reproducible output.
For the previous behaviour of using the current time,
pass ``None`` to *mtime*.
.. versionchanged:: 3.14
Comment thread
morotti marked this conversation as resolved.
Outdated
Comment thread
morotti marked this conversation as resolved.
Outdated
The default compression level was reduced to 6 (down from 9).
It is the default level used by most compression tools and a better
tradeoff between speed and performance.

.. function:: decompress(data)

Expand Down