Skip to content

Commit d04ce4f

Browse files
committed
Merge branch 'zstd-docs' of github.com:emmatyping/cpython into zstd-docs
2 parents 24f3761 + 44173f3 commit d04ce4f

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

Doc/library/compression.zstd.rst

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,6 @@ Reading and writing compressed files
119119
*zstd_dict* argument is a :class:`!ZstdDict` instance to be used during
120120
compression.
121121

122-
When opening a file for writing, the *options*, *zstd_dict* and *level*
123-
arguments have the same meanings as for :class:`ZstdCompressor`.
124-
125122
:class:`!ZstdFile` supports all the members specified by
126123
:class:`io.BufferedIOBase`, except for :meth:`~io.BufferedIOBase.detach`
127124
and :meth:`~io.IOBase.truncate`.
@@ -168,8 +165,8 @@ Compressing and decompressing data in memory
168165
parameters. The valid keys and values for compression parameters are
169166
documented as part of the :class:`CompressionParameter` documentation.
170167

171-
The *zstd_dict* argument is an instance of :class:`ZstdDict`, a Zstandard
172-
dictionary, containing trained data to improve compression efficiency. The
168+
The *zstd_dict* argument is an instance of :class:`ZstdDict`
169+
containing trained data to improve compression efficiency. The
173170
function :func:`train_dict` can be used to generate a Zstandard dictionary.
174171

175172

@@ -183,8 +180,8 @@ Compressing and decompressing data in memory
183180
parameters are documented as part of the :class:`DecompressionParameter`
184181
documentation.
185182

186-
The *zstd_dict* argument is an instance of :class:`ZstdDict`, a Zstandard
187-
dictionary, containing trained data used during compression. This must be
183+
The *zstd_dict* argument is an instance of :class:`ZstdDict`
184+
containing trained data used during compression. This must be
188185
the same Zstandard dictionary used during compression.
189186

190187
If *data* is the concatenation of multiple distinct compressed frames,
@@ -208,8 +205,8 @@ Compressing and decompressing data in memory
208205
parameters. The valid keys and values for compression parameters are
209206
documented as part of the :class:`CompressionParameter` documentation.
210207

211-
The *zstd_dict* argument is an instance of :class:`ZstdDict`, a Zstandard
212-
dictionary, containing trained data to improve compression efficiency. The
208+
The *zstd_dict* argument is an instance of :class:`ZstdDict`
209+
containing trained data to improve compression efficiency. The
213210
function :func:`train_dict` can be used to generate a Zstandard dictionary.
214211

215212
.. attribute:: CONTINUE
@@ -269,8 +266,8 @@ Compressing and decompressing data in memory
269266
parameters are documented as part of the :class:`DecompressionParameter`
270267
documentation.
271268

272-
The *zstd_dict* argument is an instance of :class:`ZstdDict`, a Zstandard
273-
dictionary, containing trained data used during compression. This must be
269+
The *zstd_dict* argument is an instance of :class:`ZstdDict`
270+
containing trained data used during compression. This must be
274271
the same Zstandard dictionary used during compression.
275272

276273
.. note::

0 commit comments

Comments
 (0)