Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1d269c10
Commit
1d269c10
authored
Feb 03, 2016
by
Martin Panter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #26244: Clarify default zlib compression level in documentation
Based on patch by Aviv Palivoda.
parent
886aba47
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
Doc/library/zlib.rst
Doc/library/zlib.rst
+4
-2
Misc/ACKS
Misc/ACKS
+1
-0
Modules/zlibmodule.c
Modules/zlibmodule.c
+1
-1
No files found.
Doc/library/zlib.rst
View file @
1d269c10
...
@@ -71,10 +71,12 @@ The available exception and functions in this module are:
...
@@ -71,10 +71,12 @@ The available exception and functions in this module are:
.. function:: compressobj([level[, method[, wbits[, memlevel[, strategy]]]]])
.. function:: compressobj([level[, method[, wbits[, memlevel[, strategy]]]]])
Returns a compression object, to be used for compressing data streams that won't
Returns a compression object, to be used for compressing data streams that won't
fit into memory at once. *level* is an integer from ``0`` to ``9`` controlling
fit into memory at once. *level* is an integer from
``0`` to ``9`` or ``-1``, controlling
the level of compression; ``1`` is fastest and produces the least compression,
the level of compression; ``1`` is fastest and produces the least compression,
``9`` is slowest and produces the most. ``0`` is no compression. The default
``9`` is slowest and produces the most. ``0`` is no compression. The default
value is ``6``.
value is ``-1`` (Z_DEFAULT_COMPRESSION). Z_DEFAULT_COMPRESSION represents a default
compromise between speed and compression (currently equivalent to level 6).
*method* is the compression algorithm. Currently, the only supported value is
*method* is the compression algorithm. Currently, the only supported value is
``DEFLATED``.
``DEFLATED``.
...
...
Misc/ACKS
View file @
1d269c10
...
@@ -1019,6 +1019,7 @@ Joonas Paalasmaa
...
@@ -1019,6 +1019,7 @@ Joonas Paalasmaa
Martin Packman
Martin Packman
Shriphani Palakodety
Shriphani Palakodety
Julien Palard
Julien Palard
Aviv Palivoda
Ondrej Palkovsky
Ondrej Palkovsky
Mike Pall
Mike Pall
Todd R. Palmer
Todd R. Palmer
...
...
Modules/zlibmodule.c
View file @
1d269c10
...
@@ -101,7 +101,7 @@ zlib_error(z_stream zst, int err, char *msg)
...
@@ -101,7 +101,7 @@ zlib_error(z_stream zst, int err, char *msg)
PyDoc_STRVAR
(
compressobj__doc__
,
PyDoc_STRVAR
(
compressobj__doc__
,
"compressobj([level]) -- Return a compressor object.
\n
"
"compressobj([level]) -- Return a compressor object.
\n
"
"
\n
"
"
\n
"
"Optional arg level is the compression level, in 0-9."
);
"Optional arg level is the compression level, in 0-9
or -1
."
);
PyDoc_STRVAR
(
decompressobj__doc__
,
PyDoc_STRVAR
(
decompressobj__doc__
,
"decompressobj([wbits]) -- Return a decompressor object.
\n
"
"decompressobj([wbits]) -- 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