mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #26243: Only the level argument to zlib.compress() is keyword argument
now. The first argument is positional-only.
This commit is contained in:
parent
696c35e86b
commit
95657cdd40
5 changed files with 12 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue