mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
bpo-37134: Add PEP570 notation to the signature of byte{array}.translate (GH-13874)
This commit is contained in:
parent
dc2476500d
commit
de76c07a8c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue