Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
2180c97a
Kaydet (Commit)
2180c97a
authored
Haz 21, 2012
tarafından
Nadeem Vawda
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Document the rest of zlib.compressobj()'s arguments.
Original patch by Jim Jewett; see issue 14684.
üst
cf5e1d82
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
8 deletions
+36
-8
zlib.rst
Doc/library/zlib.rst
+18
-4
ACKS
Misc/ACKS
+1
-0
zlibmodule.c
Modules/zlibmodule.c
+17
-4
No files found.
Doc/library/zlib.rst
Dosyayı görüntüle @
2180c97a
...
...
@@ -58,14 +58,28 @@ The available exception and functions in this module are:
exception if any error occurs.
.. function:: compressobj(
[level[, method[, wbits[, memlevel[, strategy[, zdict]]]]]
])
.. function:: compressobj(
level=-1, method=DEFLATED, wbits=15, memlevel=8, strategy=Z_DEFAULT_STRATEGY, [zdict
])
Returns a compression object, to be used for compressing data streams that won't
fit into memory at once.
*level* is an integer from ``1`` to ``9`` controlling the level of
compression; ``1`` is fastest and produces the least compression, ``9`` is
slowest and produces the most. The default value is ``6``.
*level* is the compression level -- an integer from ``1`` to ``9``. A value
of ``1`` is fastest and produces the least compression, while a value of
``9`` is slowest and produces the most. The default value is ``6``.
*method* is the compression algorithm. Currently, the only supported value is
``DEFLATED``.
*wbits* is the base two logarithm of the size of the window buffer. This
should be an integer from ``8`` to ``15``. Higher values give better
compression, but use more memory.
*memlevel* controls the amount of memory used for internal compression state.
Valid values range from ``1`` to ``9``. Higher values using more memory,
but are faster and produce smaller output.
*strategy* is used to tune the compression algorithm. Possible values are
``Z_DEFAULT_STRATEGY``, ``Z_FILTERED``, and ``Z_HUFFMAN_ONLY``.
*zdict* is a predefined compression dictionary. This is a sequence of bytes
(such as a :class:`bytes` object) containing subsequences that are expected
...
...
Misc/ACKS
Dosyayı görüntüle @
2180c97a
...
...
@@ -503,6 +503,7 @@ Julien Jehannet
Drew Jenkins
Flemming Kjær Jensen
MunSic Jeong
Jim Jewett
Orjan Johansen
Fredrik Johansson
Gregory K. Johnson
...
...
Modules/zlibmodule.c
Dosyayı görüntüle @
2180c97a
...
...
@@ -81,13 +81,26 @@ zlib_error(z_stream zst, int err, char *msg)
}
PyDoc_STRVAR
(
compressobj__doc__
,
"compressobj([level[, method[, wbits[, memlevel[, strategy[, zdict]]]]]])
\n
"
"compressobj(level=-1, method=DEFLATED, wbits=15, memlevel=8,
\n
"
" strategy=Z_DEFAULT_STRATEGY[, zdict])
\n
"
" -- Return a compressor object.
\n
"
"
\n
"
"Optional arg level is the compression level, in 1-9.
\n
"
"level is the compression level (an integer in the range 0-9; default is 6).
\n
"
"Higher compression levels are slower, but produce smaller results.
\n
"
"
\n
"
"Optional arg zdict is the predefined compression dictionary - a sequence of
\n
"
"bytes containing subsequences that are likely to occur in the input data."
);
"method is the compression algorithm. If given, this must be DEFLATED.
\n
"
"
\n
"
"wbits is the base two logarithm of the window size (range: 8..15).
\n
"
"
\n
"
"memlevel controls the amount of memory used for internal compression state.
\n
"
"Valid values range from 1 to 9. Higher values result in higher memory usage,
\n
"
"faster compression, and smaller output.
\n
"
"
\n
"
"strategy is used to tune the compression algorithm. Possible values are
\n
"
"Z_DEFAULT_STRATEGY, Z_FILTERED, and Z_HUFFMAN_ONLY.
\n
"
"
\n
"
"zdict is the predefined compression dictionary - a sequence of bytes
\n
"
"containing subsequences that are likely to occur in the input data."
);
PyDoc_STRVAR
(
decompressobj__doc__
,
"decompressobj([wbits[, zdict]]) -- Return a decompressor object.
\n
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment