From c69f93029287761ddc38ecf24c8230b5c08dbcc4 Mon Sep 17 00:00:00 2001 From: darida12321 <73121369+darida12321@users.noreply.github.com> Date: Wed, 15 Jul 2026 19:05:17 +0100 Subject: [PATCH] gh-153630: Add `str.remove{prefix,suffix}()` to the `str` method summary (GH-153629) (cherry picked from commit b4662e8e3b60a264486130a171047c7381f993f0) Co-authored-by: darida12321 <73121369+darida12321@users.noreply.github.com> Co-authored-by: Stan Ulbrych --- Doc/library/stdtypes.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index bfae61c9dfe83f7..7ad13845f44bad4 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -1720,7 +1720,11 @@ category. | | :meth:`str.strip` | :meth:`bytes.strip` | | +--------------------+----------------------+----------------------+----------------------------+ | | :meth:`str.lstrip` | :meth:`str.rstrip` | :meth:`bytes.lstrip` | :meth:`bytes.rstrip` | -+--------------------------+--------------------+----------------------+----------------------+----------------------------+ +| +--------------------+----------------------+----------------------+----------------------------+ +| | :meth:`str.removeprefix` | :meth:`bytes.removeprefix` | +| +-------------------------------------------+---------------------------------------------------+ +| | :meth:`str.removesuffix` | :meth:`bytes.removesuffix` | ++--------------------------+-------------------------------------------+---------------------------------------------------+ | Translation and Encoding | :meth:`str.translate` | :meth:`bytes.translate` | | +-------------------------------------------+---------------------------------------------------+ | | :meth:`str.maketrans` | :meth:`bytes.maketrans` |