Skip to content

docs should mention that compression.zstd and other modules are optionalย #139707

@ShaneHarvey

Description

@ShaneHarvey

Documentation

The compression.zstd docs page and 3.14 what's new changelog entry neglect to mention that compression.zstd is an optional build time dependency. The import will fail when cpython is built without libzstd:

    import compression.zstd  # noqa: I900
    ^^^^^^^^^^^^^^^^^^^^^^^
/opt/python/3.14/lib/python3.14/compression/zstd/__init__.py:29: in <module>
    import _zstd
E   ModuleNotFoundError: No module named '_zstd'

https://docs.python.org/3/library/compression.zstd.html#module-compression.zstd

Linked PRs

Metadata

Metadata

Assignees

Labels

docsDocumentation in the Doc dir

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions