Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Doc/library/struct.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ The module defines the following exception and functions:
size required by the format, as reflected by :func:`calcsize`.


.. function:: unpack_from(format, buffer, offset=0)
.. function:: unpack_from(format, /, buffer, offset=0)

Unpack from *buffer* starting at position *offset*, according to the format
string *format*. The result is a tuple even if it contains exactly one
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/zlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ The available exception and functions in this module are:
platforms, use ``adler32(data) & 0xffffffff``.


.. function:: compress(data, level=-1)
.. function:: compress(data, /, level=-1)

Compresses the bytes in *data*, returning a bytes object containing compressed data.
*level* is an integer from ``0`` to ``9`` or ``-1`` controlling the level of compression;
Expand Down Expand Up @@ -132,7 +132,7 @@ The available exception and functions in this module are:
platforms, use ``crc32(data) & 0xffffffff``.


.. function:: decompress(data, wbits=MAX_WBITS, bufsize=DEF_BUF_SIZE)
.. function:: decompress(data, /, wbits=MAX_WBITS, bufsize=DEF_BUF_SIZE)

Decompresses the bytes in *data*, returning a bytes object containing the
uncompressed data. The *wbits* parameter depends on
Expand Down