diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-02-03 07:06:33 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-02-03 07:06:33 (GMT) |
commit | 567d513b9bf24ea5f58c4ca0fc3e25c887b85dcf (patch) | |
tree | 7ce3408a0c559d47f1043ee266ff9b920698f976 /Modules/zlibmodule.c | |
parent | b00da57561505eb220a107fab0e7fbc322f767ac (diff) | |
download | cpython-567d513b9bf24ea5f58c4ca0fc3e25c887b85dcf.zip cpython-567d513b9bf24ea5f58c4ca0fc3e25c887b85dcf.tar.gz cpython-567d513b9bf24ea5f58c4ca0fc3e25c887b85dcf.tar.bz2 |
Issue #26244: Clarify default zlib compression level in documentation
Based on patch by Aviv Palivoda.
Diffstat (limited to 'Modules/zlibmodule.c')
-rw-r--r-- | Modules/zlibmodule.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c index d5a6e53..11a34bb 100644 --- a/Modules/zlibmodule.c +++ b/Modules/zlibmodule.c @@ -390,8 +390,9 @@ zlib_decompress_impl(PyModuleDef *module, Py_buffer *data, int wbits, zlib.compressobj level: int(c_default="Z_DEFAULT_COMPRESSION") = Z_DEFAULT_COMPRESSION - The compression level (an integer in the range 0-9; default is 6). - Higher compression levels are slower, but produce smaller results. + The compression level (an integer in the range 0-9 or -1; default is + currently equivalent to 6). Higher compression levels are slower, + but produce smaller results. method: int(c_default="DEFLATED") = DEFLATED The compression algorithm. If given, this must be DEFLATED. wbits: int(c_default="MAX_WBITS") = MAX_WBITS @@ -413,7 +414,7 @@ Return a compressor object. static PyObject * zlib_compressobj_impl(PyModuleDef *module, int level, int method, int wbits, int memLevel, int strategy, Py_buffer *zdict) -/*[clinic end generated code: output=2949bbb9a5723ccd input=b034847f8821f6af]*/ +/*[clinic end generated code: output=2949bbb9a5723ccd input=de2ffab6e910cd8b]*/ { compobject *self = NULL; int err; |