summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-06-06 23:44:50 (GMT)
committerGitHub <noreply@github.com>2019-06-06 23:44:50 (GMT)
commitdba4448c63b687204813a5b04c89dd458d5ac45b (patch)
tree0839252a4a942137c612b7d941479bd67b2ad887
parent1c4084f4c13d7ec516abc0439288cbeb2c96489a (diff)
downloadcpython-dba4448c63b687204813a5b04c89dd458d5ac45b.zip
cpython-dba4448c63b687204813a5b04c89dd458d5ac45b.tar.gz
cpython-dba4448c63b687204813a5b04c89dd458d5ac45b.tar.bz2
bpo-37134: Add PEP570 notation to the signature of byte{array}.translate (GH-13874)
(cherry picked from commit de76c07a8cd0216c3dce215e4d542e2f45aa022f) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
-rw-r--r--Doc/library/stdtypes.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index fcb0da7..35a17a1 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -2736,8 +2736,8 @@ arbitrary binary data.
The prefix(es) to search for may be any :term:`bytes-like object`.
-.. method:: bytes.translate(table, delete=b'')
- bytearray.translate(table, delete=b'')
+.. method:: bytes.translate(table, /, delete=b'')
+ bytearray.translate(table, /, delete=b'')
Return a copy of the bytes or bytearray object where all bytes occurring in
the optional argument *delete* are removed, and the remaining bytes have