diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2019-06-05 20:24:28 (GMT) |
---|---|---|
committer | Carol Willing <carolcode@willingconsulting.com> | 2019-06-05 20:24:28 (GMT) |
commit | 54edb04aa688c8247570b4f59b5145e3fa417576 (patch) | |
tree | 4426e4a43e45b5a27461dcc8113e79d9aa68be29 /Doc | |
parent | 1e77ab0a35cf95318bb4893f7253a30f73201163 (diff) | |
download | cpython-54edb04aa688c8247570b4f59b5145e3fa417576.zip cpython-54edb04aa688c8247570b4f59b5145e3fa417576.tar.gz cpython-54edb04aa688c8247570b4f59b5145e3fa417576.tar.bz2 |
bpo-37134: Add PEP570 notation to the documentation (GH-13743)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/struct.rst | 2 | ||||
-rw-r--r-- | Doc/library/zlib.rst | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/struct.rst b/Doc/library/struct.rst index 1a0fd73..a06d903 100644 --- a/Doc/library/struct.rst +++ b/Doc/library/struct.rst @@ -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 diff --git a/Doc/library/zlib.rst b/Doc/library/zlib.rst index aa61278..339acfd 100644 --- a/Doc/library/zlib.rst +++ b/Doc/library/zlib.rst @@ -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; @@ -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 |