diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-06-25 22:43:05 +0300 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-06-25 22:43:05 +0300 |
commit | 4a078bdcc0f92d69fe95398c9036f1a28c44c230 (patch) | |
tree | 29e2cb9c60a0abf79392914018416ae7386db24d /Modules/zlibmodule.c | |
parent | 6fa1c5ac450c8408c19d213e70d8b80d4e326815 (diff) | |
download | cpython-4a078bdcc0f92d69fe95398c9036f1a28c44c230.tar.gz |
Issue #26243: Only the level argument to zlib.compress() is keyword argument
now. The first argument is positional-only.
Diffstat (limited to 'Modules/zlibmodule.c')
-rw-r--r-- | Modules/zlibmodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c index ad6f28d7bc..3a459a58f4 100644 --- a/Modules/zlibmodule.c +++ b/Modules/zlibmodule.c @@ -143,6 +143,7 @@ zlib.compress data: Py_buffer Binary data to be compressed. + / level: int(c_default="Z_DEFAULT_COMPRESSION") = Z_DEFAULT_COMPRESSION Compression level, in 0-9 or -1. @@ -151,7 +152,7 @@ Returns a bytes object containing compressed data. static PyObject * zlib_compress_impl(PyModuleDef *module, Py_buffer *data, int level) -/*[clinic end generated code: output=1b97589132b203b4 input=abed30f4fa14e213]*/ +/*[clinic end generated code: output=1b97589132b203b4 input=638d54b6315dbed3]*/ { PyObject *ReturnVal = NULL; Byte *input, *output = NULL; |