[Python-checkins] bpo-37134: Add PEP570 notation to the signature of byte{array}.translate (GH-13874)
Pablo Galindo
webhook-mailer at python.org
Thu Jun 6 19:38:48 EDT 2019
https://github.com/python/cpython/commit/de76c07a8cd0216c3dce215e4d542e2f45aa022f
commit: de76c07a8cd0216c3dce215e4d542e2f45aa022f
branch: master
author: Pablo Galindo <Pablogsal at gmail.com>
committer: GitHub <noreply at github.com>
date: 2019-06-07T00:38:41+01:00
summary:
bpo-37134: Add PEP570 notation to the signature of byte{array}.translate (GH-13874)
files:
M Doc/library/stdtypes.rst
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index fcb0da74e158..35a17a180809 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
More information about the Python-checkins
mailing list