We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e77ab0 commit 54edb04Copy full SHA for 54edb04
2 files changed
Doc/library/struct.rst
@@ -70,7 +70,7 @@ The module defines the following exception and functions:
70
size required by the format, as reflected by :func:`calcsize`.
71
72
73
-.. function:: unpack_from(format, buffer, offset=0)
+.. function:: unpack_from(format, /, buffer, offset=0)
74
75
Unpack from *buffer* starting at position *offset*, according to the format
76
string *format*. The result is a tuple even if it contains exactly one
Doc/library/zlib.rst
@@ -47,7 +47,7 @@ The available exception and functions in this module are:
47
platforms, use ``adler32(data) & 0xffffffff``.
48
49
50
-.. function:: compress(data, level=-1)
+.. function:: compress(data, /, level=-1)
51
52
Compresses the bytes in *data*, returning a bytes object containing compressed data.
53
*level* is an integer from ``0`` to ``9`` or ``-1`` controlling the level of compression;
@@ -132,7 +132,7 @@ The available exception and functions in this module are:
132
platforms, use ``crc32(data) & 0xffffffff``.
133
134
135
-.. function:: decompress(data, wbits=MAX_WBITS, bufsize=DEF_BUF_SIZE)
+.. function:: decompress(data, /, wbits=MAX_WBITS, bufsize=DEF_BUF_SIZE)
136
137
Decompresses the bytes in *data*, returning a bytes object containing the
138
uncompressed data. The *wbits* parameter depends on
0 commit comments