Skip to content

gh-132983: Add What's New entry for PEP 784 implementation #133495

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 6, 2025
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
Use roles for consitent formatting
  • Loading branch information
hugovk committed May 6, 2025
commit df329f48233b88bc846799b9ae08647e7b63750d
8 changes: 4 additions & 4 deletions Doc/whatsnew/3.14.rst
Original file line number Diff line number Diff line change
Expand Up @@ -238,17 +238,17 @@ See :pep:`768` for more details.
PEP 784: Adding Zstandard to the standard library
-------------------------------------------------

The new ``compression`` package contains modules ``compression.lzma``, ``compression.bz2``,
``compression.gzip`` and ``compression.zlib`` which re-export the :mod:`lzma`, :mod:`bz2`,
The new ``compression`` package contains modules :mod:`!compression.lzma`, :mod:`!compression.bz2`,
:mod:`!compression.gzip` and :mod:`!compression.zlib` which re-export the :mod:`lzma`, :mod:`bz2`,
:mod:`gzip` and :mod:`zlib` modules respectively. The new import names under ``compression`` are
the canonical names for importing these compression modules going forward. However, the existing
modules names have not been deprecated. Any deprecation or removal of the existing compression modules
will occur no sooner than 5 years after the release of 3.14.

The new ``compression.zstd`` module provides compression and decompression APIs for the
The new :mod:`!compression.zstd` module provides compression and decompression APIs for the
Zstandard format via bindings to `Meta's zstd library <https://facebook.github.io/zstd/>`__.
Zstandard is a widely adopted, highly efficient, and fast compression format. In addition to the APIs
introduced in ``compression.zstd``, support for reading and writing Zstandard compressed archives
introduced in :mod:`!compression.zstd`, support for reading and writing Zstandard compressed archives
has been added to the :mod:`tarfile`, :mod:`zipfile`, and :mod:`shutil` modules.

Here's an example of using the new module to compress some data:
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy