]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-153630: Add `str.remove{prefix,suffix}()` to the `str` method summary (#153629)
authordarida12321 <73121369+darida12321@users.noreply.github.com>
Wed, 15 Jul 2026 18:05:17 +0000 (19:05 +0100)
committerGitHub <noreply@github.com>
Wed, 15 Jul 2026 18:05:17 +0000 (20:05 +0200)
Co-authored-by: Stan Ulbrych <stan@python.org>
Doc/library/stdtypes.rst

index 886648e820f071d9f6be3b9066031ada02ee96d5..9df5eb78d286a52ea001e498dfdb7e9fbc202eed 100644 (file)
@@ -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`                          |