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
04050b80
Kaydet (Commit)
04050b80
authored
Kas 11, 2012
tarafından
Nadeem Vawda
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #15677: Document that zlib and gzip accept a compression level of 0 to mean 'no compression'.
Patch by Brian Brazil.
üst
c3197254
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
10 deletions
+17
-10
gzip.rst
Doc/library/gzip.rst
+4
-3
zlib.rst
Doc/library/zlib.rst
+6
-5
gzip.py
Lib/gzip.py
+3
-2
ACKS
Misc/ACKS
+1
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Doc/library/gzip.rst
Dosyayı görüntüle @
04050b80
...
...
@@ -49,9 +49,10 @@ The module defines the following items:
not given, the 'b' flag will be added to the mode to ensure the file is opened
in binary mode for cross-platform portability.
The *compresslevel* argument is an integer from ``1`` to ``9`` controlling the
level of compression; ``1`` is fastest and produces the least compression, and
``9`` is slowest and produces the most compression. The default is ``9``.
The *compresslevel* argument is an integer from ``0`` to ``9`` controlling
the level of compression; ``1`` is fastest and produces the least
compression, and ``9`` is slowest and produces the most compression. ``0``
is no compression. The default is ``9``.
The *mtime* argument is an optional numeric timestamp to be written to
the stream when compressing. All :program:`gzip` compressed streams are
...
...
Doc/library/zlib.rst
Dosyayı görüntüle @
04050b80
...
...
@@ -62,18 +62,19 @@ The available exception and functions in this module are:
.. function:: compress(string[, level])
Compresses the data in *string*, returning a string contained compressed data.
*level* is an integer from ``
1
`` to ``9`` controlling the level of compression;
*level* is an integer from ``
0
`` 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``. Raises the :exc:`error`
exception if any error occurs.
produces the most.
``0`` is no compression. The default value is ``6``.
Raises the :exc:`error`
exception if any error occurs.
.. function:: compressobj([level])
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
fit into memory at once. *level* is an integer from ``
0
`` 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``.
``9`` is slowest and produces the most. ``0`` is no compression. The default
value is ``6``.
.. function:: crc32(data[, value])
...
...
Lib/gzip.py
Dosyayı görüntüle @
04050b80
...
...
@@ -66,9 +66,10 @@ class GzipFile(io.BufferedIOBase):
Be aware that only the 'rb', 'ab', and 'wb' values should be used
for cross-platform portability.
The compresslevel argument is an integer from
1
to 9 controlling the
The compresslevel argument is an integer from
0
to 9 controlling the
level of compression; 1 is fastest and produces the least compression,
and 9 is slowest and produces the most compression. The default is 9.
and 9 is slowest and produces the most compression. 0 is no compression
at all. The default is 9.
The mtime argument is an optional numeric timestamp to be written
to the stream when compressing. All gzip compressed streams
...
...
Misc/ACKS
Dosyayı görüntüle @
04050b80
...
...
@@ -120,6 +120,7 @@ Monty Brandenberg
Georg Brandl
Christopher Brannon
Terrence Brannon
Brian Brazil
Dave Brennan
Tom Bridgman
Keith Briggs
...
...
Misc/NEWS
Dosyayı görüntüle @
04050b80
...
...
@@ -556,6 +556,9 @@ Tools/Demos
Documentation
-------------
-
Issue
#
15677
:
Document
that
zlib
and
gzip
accept
a
compression
level
of
0
to
mean
'no compression'
.
Patch
by
Brian
Brazil
.
-
Issue
#
8040
:
added
a
version
switcher
to
the
documentation
.
Patch
by
Yury
Selivanov
.
...
...
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