Skip to content

compression.zstd docs should mention that zstd is 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

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