Skip to content

Commit c69f930

Browse files
darida12321StanFromIreland
authored andcommitted
gh-153630: Add str.remove{prefix,suffix}() to the str method summary (GH-153629)
(cherry picked from commit b4662e8) Co-authored-by: darida12321 <73121369+darida12321@users.noreply.github.com> Co-authored-by: Stan Ulbrych <stan@python.org>
1 parent a9c15c6 commit c69f930

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Doc/library/stdtypes.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1720,7 +1720,11 @@ category.
17201720
| | :meth:`str.strip` | :meth:`bytes.strip` |
17211721
| +--------------------+----------------------+----------------------+----------------------------+
17221722
| | :meth:`str.lstrip` | :meth:`str.rstrip` | :meth:`bytes.lstrip` | :meth:`bytes.rstrip` |
1723-
+--------------------------+--------------------+----------------------+----------------------+----------------------------+
1723+
| +--------------------+----------------------+----------------------+----------------------------+
1724+
| | :meth:`str.removeprefix` | :meth:`bytes.removeprefix` |
1725+
| +-------------------------------------------+---------------------------------------------------+
1726+
| | :meth:`str.removesuffix` | :meth:`bytes.removesuffix` |
1727+
+--------------------------+-------------------------------------------+---------------------------------------------------+
17241728
| Translation and Encoding | :meth:`str.translate` | :meth:`bytes.translate` |
17251729
| +-------------------------------------------+---------------------------------------------------+
17261730
| | :meth:`str.maketrans` | :meth:`bytes.maketrans` |

0 commit comments

Comments
 (0)