Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 54edb04

Browse files
pablogsalwillingc
authored andcommitted
bpo-37134: Add PEP570 notation to the documentation (GH-13743)
1 parent 1e77ab0 commit 54edb04

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/library/struct.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ The module defines the following exception and functions:
7070
size required by the format, as reflected by :func:`calcsize`.
7171

7272

73-
.. function:: unpack_from(format, buffer, offset=0)
73+
.. function:: unpack_from(format, /, buffer, offset=0)
7474

7575
Unpack from *buffer* starting at position *offset*, according to the format
7676
string *format*. The result is a tuple even if it contains exactly one

Doc/library/zlib.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ The available exception and functions in this module are:
4747
platforms, use ``adler32(data) & 0xffffffff``.
4848

4949

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

5252
Compresses the bytes in *data*, returning a bytes object containing compressed data.
5353
*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:
132132
platforms, use ``crc32(data) & 0xffffffff``.
133133

134134

135-
.. function:: decompress(data, wbits=MAX_WBITS, bufsize=DEF_BUF_SIZE)
135+
.. function:: decompress(data, /, wbits=MAX_WBITS, bufsize=DEF_BUF_SIZE)
136136

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

0 commit comments

Comments
 (0)